Beispiel #1
0
void PrintASTVisitor::visit(FuncDeclNode& node)
{
    std::cout << indent() << "FuncDeclNode: " << node.name() << '\n';
    ++indent_;
}
void PrintEquelleASTVisitor::visit(FuncDeclNode& node)
{
    std::cout << indent() << node.name() << " : ";
}
Beispiel #3
0
Node* handleFuncDeclaration(const std::string& name, FuncTypeNode* ftype)
{
    FuncDeclNode* node = new FuncDeclNode(name, ftype);
    node->setLocation(FileLocation(yylineno));
    return node;
}