hafriedlander\Peg\Compiler\Rule::parse_rule PHP Метод

parse_rule() публичный Метод

* Manual parsing, because we can't bootstrap ourselves yet
public parse_rule ( )
    function parse_rule()
    {
        $rule = trim($this->rule);
        $tokens = array();
        $this->tokenize($rule, $tokens);
        $this->parsed = count($tokens) == 1 ? array_pop($tokens) : new Token\Sequence($tokens);
    }