项目作者: EmolLi

项目描述 :
a simple compiler built with flex/bison
高级语言: C
项目地址: git://github.com/EmolLi/MiniLang.git
创建时间: 2018-01-26T05:37:31Z
项目社区:https://github.com/EmolLi/MiniLang

开源协议:

下载


MiniLang

A Mini language built with flex/bison.

project structure:

  • programs: Test programs, organized by compilation phase and by expected result.
    • Scan+parse: Runs both the scanner and parser phases
    • Typecheck: Runs until the end of the typechecker phase
    • Codegen: Runs until the compiler outputs the target code (C)
  • src: Source code for the compiler
  • build.sh: build script for compiler.
  • run.sh: Runs the compiler using two arguments (mode - $1 and input file - $2). You should replace the commands here if necessary to invoke your compiler
  • test.sh: Automatically runs the compiler against test programs in the programs directory and checks the output