|
MXVM 1.8.1
Virtual Machine, Compiler, and Pascal Frontend
|
AST node representing a single MXVM instruction with its operands. More...
#include <ast.hpp>

Public Member Functions | |
| InstructionNode (Inc inst) | |
| InstructionNode (Inc inst, const std::vector< Operand > &ops) | |
| void | addOperand (const Operand &operand) |
| void | accept (ASTVisitor &visitor) override |
| std::string | toString () const override |
| Public Member Functions inherited from mxvm::ASTNode | |
| virtual | ~ASTNode ()=default |
Public Attributes | |
| Inc | instruction |
| instruction opcode | |
| std::vector< Operand > | operands |
AST node representing a single MXVM instruction with its operands.
|
inline |
Definition at line 118 of file ast.hpp.
References instruction.
Definition at line 120 of file ast.hpp.
References instruction, and operands.
|
overridevirtual |
Implements mxvm::ASTNode.
Definition at line 41 of file ast.cpp.
References mxvm::ASTVisitor::visit().
|
inline |
|
overridevirtual |
Implements mxvm::ASTNode.
Definition at line 45 of file ast.cpp.
References instruction, and operands.
| Inc mxvm::InstructionNode::instruction |
instruction opcode
Definition at line 115 of file ast.hpp.
Referenced by InstructionNode(), InstructionNode(), and toString().
| std::vector<Operand> mxvm::InstructionNode::operands |
Definition at line 116 of file ast.hpp.
Referenced by InstructionNode(), addOperand(), and toString().