Skip to content

m-adawi/Micro_Compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project is about making a compiler for a simple educational programming language called “Micro”, using ANTLR parser generator.

It takes a .micro file as an input, which is the source code file in Micro language, then, it applies the first five steps of the compilation process to produce a two-address code of an assembly language called “Tiny”.

The Micro language’s grammar are specified in the file “Micro.g4” as understood by ANTLR. To run the compiler you should first have GNU make and Java SDK installed, then you can execute these commands:

make
java -cp ./bin/:antlr-4.8-complete.jar Main <the .micro file>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published