The program aims to build a compiler for a modified langauge that has the basics of Lua language ( tables have been removed ) and OOP flavours and type sytem of Java.
This lists out all the tools / libraries that are required to run the program.
While in the main directory, execute the following commands:
- For the lexer:
$: make
$: bin/lexer test/test[1-5].lua
- For the codegen:
# FOR LISTING THE ASSEMBLY CODE
$: make
$: bin/codegen test/[filename].ir
# EXECUTING THE ASSEMBLY CODE
$: bash includes/runassem.sh [filename] #filename should be without extension or directory
- For the parser:
$: make
$: bin/parser test/[filename].lua
- For the IR gen:
$: make
$: bin/parser test/[filename].lua
-
Task One, 28 Jan 2018
Build a lexer for the Token. -
Task Two, 12 Feb 2018
Build a Code Generator. -
Task Three, 20 March 2018
Build a LALR Parser with Rightmost Derivation displayed as an HTML file. -
Task Four, 8 April 2018
Build a IR generator for Imperative features of the source language.
- Dhruv Kumar
- Sonam Tenzin
- Manish Kumar