Skip to content

Lercerss/COMP442

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COMP 442 Compiler Design Project

By Lucas Turpin - Winter 2020

Usage

./driver.py <PHASE> <FILE>
usage: driver.py [-h] PHASE FILE

COMP 442 Compiler for the Moon simulator

positional arguments:
  PHASE       One of "lex", "syn", "sem", "gen" or "exe"
                lex: Performs lexical analysis
                syn: Performs syntactic analysis
                sem: Performs semantic analysis
                gen: Performs code generation
                exe: Generates and executes the corresponding moon output file
  FILE        Source file to compile

optional arguments:
  -h, --help  show this help message and exit

Dependencies

  • Python 3
  • Moon Processor

Moon Processor

The Moon processor executable can be compiled using the provided build script. If it is already installed, the symlink at the root of the repo can be modified.

About

Compiler Design Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published