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