Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 880 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 880 Bytes

🐉 L compiler 🐉

L programming language java-based compiler for Linux🐧, as part of a project in compilation course at Tel-Aviv University 🎓. L is an object-oriented programming language (OOP), which is a simplified version of java.

As part of the compilation process, the L code being translated into an Intermediate Representation code (IR code), which eventually being translated into MIPS assembly.

The compiler is powered by JFlex & CUP.

Usage

In order to create (compile🤯) the compiler, use make compile; To create and execute the compiled MIPS assembly code, use make everything. After creating the compiler, you can compile L source code files using:

$ COMPILER <source-code-path> <output-MIPS-path>

L syntax grammar

image