GSC Interpreter
A Turing-complete interpreter developed for a compiler course
|
Class representing a grouping expression. More...
#include <expr.hpp>
Public Member Functions | |
Grouping (std::shared_ptr< Expr > expression) | |
std::any | accept (ExprVisitor &visitor) override |
std::shared_ptr< Expr > | getExpression () const |
Private Attributes | |
const std::shared_ptr< Expr > | expression |
Class representing a grouping expression.
This class represents a grouping expression in the AST, which is used to group sub-expressions. It inherits from the Expr class and implements the accept method for visitor pattern.
|
inline |
|
inlineoverridevirtual |
|
inline |