Skip to content

A C-like programming language Cheez and compiler that support basic arithmetic operations, primitive data types, advanced data types like array and struct and offers certain library functions.

Notifications You must be signed in to change notification settings

jenniferduan45/Cheez-Compiler

Repository files navigation

Cheez Compiler

This is the course project for COMS4115 Programming Language & Translators instructed by Prof. Ronghui Gu in Spring 2022.

Components

The repository consists of:

  • Scanner: scanner.mll
  • Parser: parser.mly
  • Abstract Syntax Tree: ast.ml
  • Semantically Checked Ast: sast.ml
  • Semantic Checker: semant.ml
  • Intermediate Representation (IR) Generation: irgen.ml
  • External Library: lib.c, chezlib.c
  • Testing Suite: Makefile, test.py, /test folder

These files complete the lexical analysis, syntax analysis, semantic check, and IR generation of Cheez programming language.

Architecture

ad

About

A C-like programming language Cheez and compiler that support basic arithmetic operations, primitive data types, advanced data types like array and struct and offers certain library functions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published