Skip to content

Latest commit

 

History

509 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yet another another PHP compiler

An implementation for a php java-like compiler for Compiler Design courses at Damascus University.

Getting Started

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.

Versions

Wiki

check the Wiki for some usefull stuff.

Authors

License

GPL 2.0 - all books and articles are under copyrights of thier respectful owners.

About

yet another php compiler

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages