Assignment #4 "Elementary Compiler" this project is submitted to the "01076262 Compiler Construction" subject, CE KMITL 2016
- Install required packages (GCC, Flex, Bison, NASM)
$ sudo apt-get install gcc flex bison nasm
- Compile program
$ ./compile <Your file name>
Ex. $ ./compile example/Fibonacci.tgs
*Noted that test.tgs is your tgs file
- Run program
$ nasm -felf64 <Your compiled file(.asm)>
$ gcc <Your compiled file(.o)>
$ ./a.out
Please look at TGS.l(lexer), TGS.y(Grammars) files.
- Suttichai Pongsanont
- Atthasit Sintunyatum
- Isara Naranirattisai