An implementation for a php java-like compiler for Compiler Design courses at Damascus University.
The final release of the project has the following structure:
- src/lexer.l: a lexer file which defines php tokens.
- src/grammar.y: a yacc/grammar file which defines php syntax and AST-CG integration.
- src/AST: an implementation for the Abstract Syntax Tree.
- src/Code Generator: an implementation for the Code Generation phase.
- src/ErrorRecovery: an implementation for error recovery tools.
- src/SymbolTable: an implementation for Symbol Table.
- src/TypeSystem: an implementation for the Type System.
- src/DependencyGraph: the structure of Dependency graph used in Syntactic-Semantic phases.
- /samples: the samples used in the demo of the project.
The first release of the project contains the following:
- src/lexer.l: a lexer file which defines php tokens.
- src/grammar.y: a yacc/grammar file which defines php syntax, Symbol Table integration and simple Error Recovery rules.
- src/SymbolTable: an implementation for Symbol Table.
- src/DependencyGraph: the structure of Dependency graph used in Syntactic phase.
- The current project state is the last version developed at the end of the second semester.
- The (60 Marks) version
- The first semester version
check the Wiki for some usefull stuff.
GPL 2.0 - all books and articles are under copyrights of thier respectful owners.