QuISP
Loading...
Searching...
No Matches
InstructionVisitor.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4#include "macro_utils.h"
5#include "opcode.h"
6#include "types.h"
7
8namespace quisp::runtime {
9
10class Runtime;
11
24
25// the methods declarations are done by macro expansion
26#define INSTR(Opcode, ...) void operator()(const INSTRUCTION_TYPE_ALIAS(Opcode, __VA_ARGS__) & instruction);
27#include "def_instructions.h"
28#undef INSTR
29
32};
33
34} // namespace quisp::runtime
Runtime class is responsible for executing the given RuleSet and the states' management.
Definition Runtime.h:48
Definition InstructionVisitor.cc:7
this file contains the definitions of all the user-defined types widely used alongside the runtime::R...
Visitor class for instructions in a Program.
Definition InstructionVisitor.h:18
InstructionVisitor(Runtime *runtime)
Definition InstructionVisitor.h:19
Runtime * runtime
the pointer to the runtime holds this visitor instance.
Definition InstructionVisitor.h:31
InstructionVisitor & operator=(const InstructionVisitor &visitor)
Definition InstructionVisitor.cc:11
InstructionVisitor & operator=(InstructionVisitor &&visitor)=delete
InstructionVisitor(InstructionVisitor &&visitor)=delete