Skip to content

puzzler7/ECE553-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ECE553Project

Team Members

  • Bowen Jiang (bj92)
  • Andy Zhang (az107)
  • Maverick Chung (mc608)

Links to Compiler Parts

Testing Instructions

Prerequisites

Running tests

  • Run npm install then npm test.
  • The first test should spawn a mlton process to compile the SML into a standalone executable, which is used in the tests that follow.

Test details

  • In general, snapshots (in test/*/__snapshots__) of the executables' output are created to reveal any changes in output between different builds of the code.
Lexer
  • Tests perform a simple check that the lexer can run on a .tig file without crashing (i.e. process does not error and no output to stderr).
  • Error messages in stdout are determined by pattern matching /:[0-9]+\.[0-9]+:/ (which is faulty but good enough for our purposes). positive tests should not have errors, while negative tests should.

About

A Tiger compiler to MIPS assembly, written in SML

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages