/** * * OOAS Compiler - C++ AST * * Copyright 2015, AIT Austrian Institute of Technology. * All rights reserved. * * SEE THE "LICENSE" FILE FOR THE TERMS UNDER WHICH THIS FILE IS PROVIDED. * * If you modify the file please update the list of contributors below to in- * clude your name. Please also stick to the coding convention of using TABs * to do the basic (block-level) indentation and spaces for anything after * that. (Enable the display of special chars and it should be pretty obvious * what this means.) Also, remove all trailing whitespace. * * Contributors: * Willibald Krenn (AIT) * Stephan Zimmerer (AIT) * Christoph Czurda (AIT) * */ #pragma once #include #include "Ast.hpp" namespace Ast { class IAstVisitor { public: virtual ~IAstVisitor() {}; virtual std::string returnVisitorName() = 0; virtual void visit(TypeIdentifier* typeIdentifier) = 0; virtual void visit(EnumIdentifier* enumIdentifier) = 0; // virtual void visit(ValuedEnumIdentifier* enumIdentifier) = 0; virtual void visit(AttributeIdentifier* attributeIdentifier) = 0; virtual void visit(LocalVariableIdentifier* localVariableIdentifier) = 0; virtual void visit(ParameterIdentifier* parameterIdentifier) = 0; virtual void visit(ExpressionVariableIdentifier* expressionVariableIdentifier) = 0; virtual void visit(MethodIdentifier* methodIdentifier) = 0; virtual void visit(NamedActionIdentifier* namedActionIdentifier) = 0; virtual void visit(Module* module) = 0; virtual void visit(ConstantIdentifier* constantIdentifier) = 0; virtual void visit(UnspecIdentifierBlock* unspecIdentifierList) = 0; virtual void visit(SeqIdentifierBlock* seqIdentifierList) = 0; virtual void visit(NondetIdentifierBlock* nondetIdentifierList) = 0; virtual void visit(PrioIdentifierBlock* prioIdentifierList) = 0; virtual void visit(MainModule* mainModule) = 0; virtual void visit(IntType* intType) = 0; virtual void visit(BoolType* boolType) = 0; virtual void visit(EnumType* enumType) = 0; virtual void visit(ListType* listType) = 0; virtual void visit(TupleType* tupleType) = 0; virtual void visit(NullType* nullType) = 0; virtual void visit(FunctionType* functionType) = 0; virtual void visit(ActionSystemType* actionSystemType) = 0; virtual void visit(PointerType* pointerType) = 0; virtual void visit(GuardedCommand* guardedCommand) = 0; virtual void visit(Call* call) = 0; virtual void visit(Assignment* assignment) = 0; virtual void visit(SeqBlock* seqBlock) = 0; virtual void visit(NondetBlock* nondetBlock) = 0; virtual void visit(PrioBlock* prioBlock) = 0; virtual void visit(Skip* skipStatement) = 0; virtual void visit(Break* breakStatement) = 0; virtual void visit(Abort* abortStatement) = 0; virtual void visit(TernaryOperator* ternaryOperator) = 0; virtual void visit(BinaryOperator* binaryOperator) = 0; virtual void visit(UnaryOperator* unaryOperator) = 0; virtual void visit(ExistsQuantifier* quantifier) = 0; virtual void visit(ForallQuantifier* quantifier) = 0; virtual void visit(ListConstructor* listConstructor) = 0; virtual void visit(SetConstructor* setConstructor) = 0; virtual void visit(TupleConstructor* tupleConstructor) = 0; virtual void visit(ObjectConstructor* objectConstructor) = 0; virtual void visit(BoolValueExpression* identifierExpression) = 0; virtual void visit(IntValueExpression* identifierExpression) = 0; virtual void visit(RefValueExpression* identifierExpression) = 0; virtual void visit(IdentifierExpression* identifierExpression) = 0; virtual void visit(TypeExpression* typeExpression) = 0; virtual void visit(TupleMapAccessExpression* tupleMapAccessExpression) = 0; virtual void visit(CallExpression* callExpression) = 0; virtual void visit(AccessExpression* accessExpression) = 0; /* virtual void visit(SelfTypeIdentifier& typeIdentifier) = 0; virtual void visit(KillStatement& killStatement) = 0; virtual void visit(UnresolvedIdentifierExpression& unresolvedIdentifierExpression) = 0; virtual void visit(MapConstructor& mapConstructor) = 0; virtual void visit(CharType& charType) = 0; virtual void visit(FloatType& floatType) = 0; virtual void visit(MapType& mapType) = 0; virtual void visit(AnyType& anyType) = 0; */ }; }