Example

This is a really simple example of a functional, tested grammar. They get much more complex.

StarterGrammar's Directives

Most grammars will have more directives & multiple traits to facilitate organization. This example only uses one trait.

'/home/reed/data/owner/Reed/projects/php/Lexer/code/Starter/OtherDirectives.php' is not a file.  

StarterGrammar

See that directives are built during onGrammarAdded() from the traits.

'/home/reed/data/owner/Reed/projects/php/Lexer/code/Starter/StarterGrammar.php' is not a file.