GSC Interpreter
A Turing-complete interpreter developed for a compiler course
|
Abstract base class for expression visitors. More...
#include <expr.hpp>
Public Member Functions | |
virtual std::any | visitBinaryExpr (std::shared_ptr< Binary > expr)=0 |
virtual std::any | visitGroupingExpr (std::shared_ptr< Grouping > expr)=0 |
virtual std::any | visitLiteralExpr (std::shared_ptr< Literal > expr)=0 |
virtual std::any | visitUnaryExpr (std::shared_ptr< Unary > expr)=0 |
virtual std::any | visitAssignExpr (std::shared_ptr< Assign > expr)=0 |
virtual std::any | visitVariableExpr (std::shared_ptr< Variable > expr)=0 |
virtual std::any | visitLogicalExpr (std::shared_ptr< Logical > expr)=0 |
virtual | ~ExprVisitor ()=default |
Abstract base class for expression visitors.
This class defines the interface for visitors that can traverse and process different types of expressions in an abstract syntax tree (AST).
|
virtualdefault |
|
pure virtual |
Implemented in Interpreter.
|
pure virtual |
Implemented in Interpreter.
|
pure virtual |
Implemented in Interpreter.
|
pure virtual |
Implemented in Interpreter.
|
pure virtual |
Implemented in Interpreter.
|
pure virtual |
Implemented in Interpreter.
|
pure virtual |
Implemented in Interpreter.