SkuratovichA / ifj21

IFJ(formal languages and compilers) course project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ifj21

Compiler for subset of TEAL language named "ifj21". Code in "ifj21" language is compiled to an intermediate representation called "ifjcode21"

Compilation

  • To compile a compiler itself:
  cd cmake-build-debug && make ifj21
  • To compile & generate tests:
  cd cmake-build-debug && make testgen && ./testgen

Running

./ifj21 < "inputfile.tl"

Testing

cd tests && ./tests_shch all

An intermediate code is written to the stdout.

About

IFJ(formal languages and compilers) course project


Languages

Language:C 95.8%Language:Shell 2.0%Language:Python 1.0%Language:OCaml 0.9%Language:CMake 0.3%Language:Makefile 0.1%