GavinSadler / bminor-compiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bminor-compiler

Gavin Sadler, Spring 2024
COMP.4060 - Compiler Construction

How to make the compiler

$ make

Running the compiler

So far, the only functioning parts of the compiler are the scanner, parse validator, AST generator, and a pretty printer, the following functionality is supported:

$ ./bminor -scan        <file>
$ ./bminor -parse       <file>
$ ./bminor -prettyprint <file>

How to run tests

This will run all of the tests created for the compiler. This includes lexing, parsing, and ensuring that the AST is valid via the pretty printer.

$ make test

About


Languages

Language:Python 48.3%Language:C 41.3%Language:Yacc 6.1%Language:Shell 1.7%Language:Lex 1.4%Language:Makefile 1.2%