Skip to content

Lexical analyzer and parser for a pascal based language

License

Notifications You must be signed in to change notification settings

itzortzis/Ptuc_compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

15/01/2016

Description:
-------------

PTUC is a simplified version of pascal language. The current project contains
the lexical analyzer(flex) and the parser(byson) for this programming language. 
The project was implemented for educational purposes (for the course "Theory of
computation", School of Electronic and Computer Engineering, Technical University 
of Crete) and of course, for FUN :). Every addition or correction is more than 
desired!


Files of the project:
----------------------

mycompiler.l  :  the lexer
mycompiler.y  :  the parser
Makefile      :  the make file
run.sh        :  auxiliary shell script


How to run ptuc compiler:
--------------------------

1. Put your example .ptuc file in 'examples' folder.
2. Open a terminal in project's folder.
3. Run script 'run.sh': sh run.sh
4. Give the name of the example
5. Enjoy

About

Lexical analyzer and parser for a pascal based language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published