generated/Parser/ParserImpl.php
protected function parseLiteral()
    {
        $a = [];

        // 'null' | 'true' | 'false' | T_INT | T_FLOAT
        $o1 = $this->offset;
        while ($o1 !== null) {
            if ($this->type !== 'null') { break; }
            $c1 = $this->consume();


            $o1 = null;
        }

        while ($o1 !== null) {
            if ($this->type !== 'true') { break; }
            $c1 = $this->consume();


            $o1 = null;
        }

        while ($o1 !== null) {
            if ($this->type !== 'false') { break; }
            $c1 = $this->consume();


            $o1 = null;
        }

        while ($o1 !== null) {
            if ($this->type !== 'T_INT') { break; }
            $c1 = $this->consume();


            $o1 = null;
        }

        while ($o1 !== null) {
            if ($this->type !== 'T_FLOAT') { break; }
            $c1 = $this->consume();


            $o1 = null;
        }

        if ($o1 !== null) {
            return $this;
        }

        $a[] = $c1;

        return ($this->action)('Literal', 'parseLiteral', $a);
    }
protected function parseLiteral()
    {
        $a = [];

        // 'null' | 'true' | 'false' | T_INT | T_FLOAT
        $o1 = $this->offset;
        while ($o1 !== null) {
            if ($this->type !== 'null') { break; }
            $c1 = $this->consume();


            $o1 = null;
        }

        while ($o1 !== null) {
            if ($this->type !== 'true') { break; }
            $c1 = $this->consume();


            $o1 = null;
        }

        while ($o1 !== null) {
            if ($this->type !== 'false') { break; }
            $c1 = $this->consume();


            $o1 = null;
        }

        while ($o1 !== null) {
            if ($this->type !== 'T_INT') { break; }
            $c1 = $this->consume();


            $o1 = null;
        }

        while ($o1 !== null) {
            if ($this->type !== 'T_FLOAT') { break; }
            $c1 = $this->consume();


            $o1 = null;
        }

        if ($o1 !== null) {
            return $this;
        }

        $a[] = $c1;

        return ($this->action)('Literal', 'parseLiteral', $a);
    }
Literal ::= 'null' | 'true' | 'false' | T_INT | T_FLOAT