Beispiel #1
0
void PrintASTVisitor::visit(FuncTypeNode& node)
{
    std::cout << indent() << "FuncTypeNode: " << node.funcType().equelleString() << '\n';
}
void PrintEquelleASTVisitor::visit(FuncTypeNode& node)
{
    std::cout << node.funcType().equelleString();
}
Beispiel #3
0
FuncTypeNode* handleFuncType(FuncArgsDeclNode* argtypes, TypeNode* rtype)
{
    FuncTypeNode* node = new FuncTypeNode(argtypes, rtype);
    node->setLocation(FileLocation(yylineno));
    return node;
}