Skip to content

DiasIuri/gold-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

GOLD: Gold over limits, dude

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published