lexExpression example

break;
        }
    }

    private function lexBlock(): void
    {
        if (empty($this->brackets) && preg_match($this->regexes['lex_block']$this->code, $match, 0, $this->cursor)) {
            $this->pushToken(/* Token::BLOCK_END_TYPE */ 3);
            $this->moveCursor($match[0]);
            $this->popState();
        } else {
            $this->lexExpression();
        }
    }

    private function lexVar(): void
    {
        if (empty($this->brackets) && preg_match($this->regexes['lex_var']$this->code, $match, 0, $this->cursor)) {
            $this->pushToken(/* Token::VAR_END_TYPE */ 4);
            $this->moveCursor($match[0]);
            $this->popState();
        } else {
            $this->lexExpression();
        }
Home | Imprint | This part of the site doesn't use cookies.