Skip to content

jkassman/compilers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Code for Compilers Course

This repository contains example code and test cases for the CSE 40243 compilers course at the University of Notre Dame.

  • calc0 contains an incorrect example that attempts to parse arithmetic expressions using bison, but is full of shift-reduce conflits.

  • calc1 contains a correct example of using bison and flex together to parse and evaluate simple arithmetic expressions, by computing results as they are parsed.

  • calc2 contains a more complex example of using bison and flex to parse arithmetic expressions and convert them into a simple abstract syntax tree of expressions. This would be a good place to start as you design your compiler.

  • cminor contains the starter code for the CMinor project, starting with the AST for the parser assignment.

  • tests contains the hidden instructors' tests that were used to evaluate each programming assignment.

About

Example code for compilers course at Notre Dame.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 73.7%
  • Yacc 13.8%
  • Makefile 6.3%
  • Lex 5.2%
  • Shell 1.0%