GSC Interpreter
A Turing-complete interpreter developed for a compiler course
|
Class representing a variable expression. More...
#include <expr.hpp>
Public Member Functions | |
Variable (Token name) | |
std::any | accept (ExprVisitor &visitor) override |
Token | getName () const |
Private Attributes | |
const Token | name |
Class representing a variable expression.
This class represents a variable expression in the AST, which consists of a variable name. It inherits from the Expr class and implements the accept method for visitor pattern.
|
inlineoverridevirtual |
|
inline |