GSC Interpreter
A Turing-complete interpreter developed for a compiler course
|
Class representing a logical expression. More...
#include <expr.hpp>
Public Member Functions | |
Logical (std::shared_ptr< Expr > left, Token op, std::shared_ptr< Expr > right) | |
std::any | accept (ExprVisitor &visitor) override |
std::shared_ptr< Expr > | getLeft () const |
std::shared_ptr< Expr > | getRight () const |
Token | getOp () const |
Private Attributes | |
const std::shared_ptr< Expr > | left |
const Token | op |
const std::shared_ptr< Expr > | right |
Class representing a logical expression.
This class represents a logical expression in the AST, which consists of a left operand, an operator, and a right operand. It inherits from the Expr class and implements the accept method for visitor pattern.
|
inlineoverridevirtual |
|
inline |
|
inline |