Skip to content
This repository was archived by the owner on Oct 25, 2020. It is now read-only.

CSpyridakis/FL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fictional Language to C Trans-compiler

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.

Dependencies

  1. Flex
  2. Bison

Usage


1. To Build in a LINUX-based system, run the command below:

$ make

2. How to Use Trans-compiler:

$ ./fl path_to_file.fl

Or view Trans-compiler Help Menu for more information:

$ ./fl -h

Clean generated files:

$ make clean

Known Issues:

  • 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)

IMPORTANT:

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.

About

Fictional Language to C Trans-compiler

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •