private function parseText(TokenStream $tokens, AstNode $currNode): void
    {
        if (($token = $tokens->getCurrent()) === null) {
            return;
        }

        $currNode->addChild(new AstNode(AstNodeTypes::TEXT, $token->value));
        $tokens->next();
    }
private function parseText(TokenStream $tokens, AstNode $currNode): void
    {
        if (($token = $tokens->getCurrent()) === null) {
            return;
        }

        $currNode->addChild(new AstNode(AstNodeTypes::TEXT, $token->value));
        $tokens->next();
    }
private function parseText ( TokenStream $ tokens , AstNode $ currNode ) : void { if ( ( $ token = $ tokens -> getCurrent ( ) ) === null ) { return ; } $ currNode -> addChild ( new AstNode ( AstNodeTypes :: TEXT , $ token -> value ) ) ; $ tokens -> next ( ) ; }
Parses a text token

@param TokenStream $tokens The stream of tokens to parse
@param AstNode $currNode The abstract syntax tree to add nodes to
Parses a text token