milicevicMarko / MJ_Compiler

This project was an assignment for the class : Compiler Construction 1 (srb. Programski Prevodioci 1). Please read the README.md file for more info.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MJ Compiler

This project was an assignment for the class : Compiler Construction 1 (srb. Programski Prevodioci 1)

The assignment and all the rules can be found in the assignment folder here.

Phases:

1. Lexical analysis

2. Parsing

3. Semantic analysis

4. Code generating

todo improve readme by explaining every step

Usage

General advice is to use Intellij as it makes our lives simpler :)

Compile

The file to be compiled should be placed in the test

The extension of the file to be compiled should be .mj

The file to be used as input valued is program.in

To use the compiler, go to test/rs/ac/bg/etf/pp1/compiler

Set the name of the file to be compiled as a VM arguments (eg. program.mj)

Run

To run the program, go to build.xml, and run the runObj target

Debug

To debug the program, remove the comment symbols in the build.xml, on line 74.

About

This project was an assignment for the class : Compiler Construction 1 (srb. Programski Prevodioci 1). Please read the README.md file for more info.


Languages

Language:Java 94.0%Language:Lex 6.0%