/vutfit-ifj-ial-project

Compiler for programming language Go

Primary LanguageC

Formal Languages and Compilers

Project IFJ/IAL 2020

Compiler of custom language IFJ20 (subset of language Go) written in C. Program translates source code from standard input into IFJcode20 (machine code).

Authors

  • Peter Koprda
  • Daniel Paul
  • Pavol Babjak
  • Viliam Holík

Results

  • Lexical analysis (error detection): 100 % (170/170)
  • Syntactic analysis (error detection): 87 % (175/200)
  • Semantic analysis (error detection): 84 % (287/338)
  • Semantic/runtime errors (detection): 100 % (26/26)
  • Interpretation of compiled code: 54 % (465/850)

Total score without extensions: 70 % (1123/1584)

Usage

  • make - compiles the program
  • make test - compiles the program and runs all the tests
  • make clean - removes generated files