Skip to content

ZulfiqarCH100/Compiler

Repository files navigation

Made by:

Zulfiqar Chaudhry: 18l-1037

Daud Mazhar: 18l-0919

Working:

  • The Compiler class does all the work and runs Lexer -> Parser -> Virtual Machine.
  • Just run the main of the Compiler class.
  • Lexer reads from Input.exe and writes tokens in Output.txt.
  • Parser reads the tokens from Output.txt and produces: symboltable.txt, tac.txt and parsetree.txt.
  • Virtual machines reads from tac.txt and symboltable.txt to run the code on the terminal.

About

A fully working compiler for a custom language containing a separate Lexer, Parser and Virtual Machine. Uses concepts from CFGs to parse tokens and run the code.

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages