Skip to content
HexFlowPublic

About

A Memory Inefficient GO compiler

Topics

Resources

Stars

4 stars

Watchers

3 watching

Forks

Latest commit

 

History

121 Commits

Folders and files

Repository files navigation

AMIGO (A Memory Inefficient GO compiler)

Go Compiler written for CS335 course, 2017 Spring semester.

Running

Dependencies

  • GNU flex
  • GNU bison
  • GNU make

Build

make

This should generate binaries inside the folder bin.

Alternatively, the following commands are also available:

make lexer
make parser

Usage

./bin/lexer <filename> -o <outfile>
./bin/parser <filename> -o <outfile>

The -o flag is optional, and if omitted, the output will be on stdout.

Tests

Drawing the graphs for the test cases can be done as follows:

make test1
make test2
make test3

This will create PostScript files in the main folder which you can then view with Evince/Zathura etc.

About

A Memory Inefficient GO compiler

Topics

Resources

Stars

4 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages