#include <cprogram.h>
Public Member Functions | |
CProgram () | |
Default ctor. | |
~CProgram () | |
Default dtor. | |
const std::map < std::string, unsigned > & | getLabels () const |
get reference to labels map | |
unsigned | findLabel (const std::string &label) const |
search for label | |
void | compile (std::istream &in) |
create instructions from parsing stream |
CProgram::CProgram | ( | ) |
Default ctor.
- |
none |
CProgram::~CProgram | ( | ) |
Default dtor.
- |
none |
const std::map<std::string, unsigned>& CProgram::getLabels | ( | ) | const [inline] |
get reference to labels map
- |
none |
unsigned CProgram::findLabel | ( | const std::string & | label | ) | const |
search for label
label | name of label to search for |
std::runtime_error |
void CProgram::compile | ( | std::istream & | in | ) |
create instructions from parsing stream
in | inputstream to read from |
std::runtime_error |