Simple Trans-compiler implemented for a Theory of Computation course at the Technical University of Crete. This application trans-compiles code from a fictional language - specifications are available here - to C programs.
- Flex
- Bison
$ make
$ ./fl path_to_file.fl
$ ./fl -h
$ make clean
- Fix last one shift/reduce conflict on State 38*
- Fix last one reduce/reduce conflict on State 103*
*(make project and see build/ptucc_parser.output for more)
The ptuclib.h file that exists here & here and a part of code in cgen.c & cgen.h owned by the Technical University of Crete. These files were given to us throughout the course as is, without any warranty. They may or may not had bugs, useless parts of code, or other problems to simulate a real-life scenario. Therefore, these had an educational purpose and only. During the course's project, our job was to understand given sources, identify their components, remove/rewrite/add content from/to them, and finally write our code to implement needed requirements.