QuISP
Loading...
Searching...
No Matches
quisp::runtime::Program Class Reference

The Program is a list of Instructions with metadata. The Runtime can execute the Program. More...

#include <RuleSet.h>

Collaboration diagram for quisp::runtime::Program:

Public Member Functions

 Program (const std::string &name, const std::vector< InstructionTypes > &opcodes, bool debugging=false)
 

Public Attributes

std::vector< InstructionTypesopcodes
 
LabelMap label_map
 the map to find instruction index (pc) by label.
 
std::string name
 the Program name for debugging purpose.
 
bool debugging = false
 if it's true, show instruction and runtime state in each step.
 

Detailed Description

The Program is a list of Instructions with metadata. The Runtime can execute the Program.

Constructor & Destructor Documentation

◆ Program()

quisp::runtime::Program::Program ( const std::string & name,
const std::vector< InstructionTypes > & opcodes,
bool debugging = false )

Member Data Documentation

◆ debugging

bool quisp::runtime::Program::debugging = false

if it's true, show instruction and runtime state in each step.

◆ label_map

LabelMap quisp::runtime::Program::label_map

the map to find instruction index (pc) by label.

The Runtime uses this to jump / branch its execution.

◆ name

std::string quisp::runtime::Program::name

the Program name for debugging purpose.

◆ opcodes

std::vector<InstructionTypes> quisp::runtime::Program::opcodes

The documentation for this class was generated from the following files: