Skip to content

Compiler for MiniJava that does grammar, semantic and a parsing check to see if there are any errors in the program, if there are not any it writes visitors that turn MiniJava code into the intermediate representation used by the LLVM

Notifications You must be signed in to change notification settings

nikossrp/MiniJava-Compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MiniJava-Compiler

Compile

make

Usage

Compile your minijava program with miniJava compiler. You will get a minijava_program_name.ll (You can compile one or more minijava files)

>>java Main minijava_program_name1.java [minijava_file_name2.java] [minijava_file_name3.java]

You will need to execute the produced LLVM IR files in order to see that their output is the same as compiling the input java file with javac and executing it with java. To do that, you will need Clang with version >=4.0.0

>>clang -o out1 minijava_program_name.ll

Run
>>./out1

About

Compiler for MiniJava that does grammar, semantic and a parsing check to see if there are any errors in the program, if there are not any it writes visitors that turn MiniJava code into the intermediate representation used by the LLVM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published