Exemple #1
0
 private function angleTrick()
 {
     $trick = new \gi\parse\SequenceParse();
     $trick->add(new \gi\parse\CharacterParse('<'))->discard();
     $trick->add(new \gi\parse\WordParse('trick'));
     return $trick;
 }
Exemple #2
0
 function variable()
 {
     $variable = new \gi\parse\SequenceParse();
     $variable->add(new \gi\parse\CharacterParse('$'))->discard();
     $variable->add(new \gi\parse\WordParse());
     $variable->setHandler(new VariableHandler());
     return $variable;
 }