Skip to content

Latest commit

 

History

History
61 lines (48 loc) · 1.6 KB

README.md

File metadata and controls

61 lines (48 loc) · 1.6 KB

GOLD: Gold over limits, dude

Overview

It is a very nice compiler (I hope so).

Seriously, Gold Compiler is a JavaScript-based compiler in development, so far. The construction of this compiler is a project of the Compilers discipline of the Computer Engineering course at IFMT.

The construction of Gold Compiler is divided into:

Lexical analysis
Syntax analisys
Semantic analysis
Generation of intermediate code
Final code generation

How to run

You will need to have Node.js installed on your machine. After that, open your terminal in the project folder and run:

node gold [options] [script.gold] [arguments]

Options

-lt, --listTokens shows a table that displays each tokens in script
-ls, --listSyntactic shows syntax analisys log
-lse, --listSemantic shows semantic analisys log
-lgc, --listLog shows intemediate code generation log
-all shows all compilation tables and logs

Arguments

-v, --verbose shows hidden execution messages

License

MIT