Skip to content

sudheerachary/Flat-B-Compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Flat-B Language Compiler

Flat-B is a Programming Language mainly consists of declaration block where all the used variables are declared, code block consists of program logic expressed in multiple arithmetic expressions, assignments, different kind of loops.

Dependencies

Flex - A Lexical Analyzer.

Install flex

sudo apt install flex

Bison - A Parser Generator.

Install bison

sudo apt install bison

LLVM - A Low Level Virtual Machine Used for IR Generation.

Install llvm

follow instruction here

Instructions to run

Make the Flat-B Compiler

make

Run the Flat-B Compiler

./bcc.sh path_to_test_file

View Generated IR

./bcc path_to_test_file

Clean Generated Files

make veryclean