Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 999 Bytes

README.md

File metadata and controls

49 lines (31 loc) · 999 Bytes

Codacy Badge

Uc Compiler.

Compiler for a subset of the C language.

Disclaimer

This project is not fully complete. Code generation is not correctly implemented and semantic errors are not detected.

Running the compiler

  1. Lexical analisys
$ ./uccompiler -l

or

$ ./uccompiler -1
  1. Abstract Syntax Tree
$ ./uccompiler -t
  1. Syntax Analisys
$ ./uccompiler -2
  1. Semantic Analisys

In this step the project will create the necessary Symbol Tables and annotate the AST. The project will only complete this step if there are no syntax errors in the code.

$ ./uccompiler -s
  1. Default

If no flags are used, the project will create the symbol tables and generate the code.