private function angleTrick() { $trick = new \gi\parse\SequenceParse(); $trick->add(new \gi\parse\CharacterParse('<'))->discard(); $trick->add(new \gi\parse\WordParse('trick')); return $trick; }
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; }