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

        $currNode->addChild(new AstNode(AstNodeTypes::TEXT, $token->value));
        $tokens->next();
    }