Skip to content

Latest commit

 

History

History
71 lines (46 loc) · 1.15 KB

File metadata and controls

71 lines (46 loc) · 1.15 KB

Purpose

For a given language, it defines the representation of its grammar as "No Terminal Expression" and "Terminal Expression", as well as an interpreter for the sentences of that language.

Examples

  • An example of a binary logic interpreter, each definition is defined by its own class

UML Diagram

Alt Interpreter UML Diagram

Code

You can also find this code on GitHub

AbstractExp.php

AbstractExp.php

Context.php

Context.php

VariableExp.php

VariableExp.php

AndExp.php

AndExp.php

OrExp.php

OrExp.php

Test

Tests/InterpreterTest.php

Tests/InterpreterTest.php