/* ** Yab2Cpp ** ** Transpiler by Samuel D. Crow ** ** Based on Yab ** */ #include "yab2cpp.h" /* static initializers */ unordered_map > label::lookup; unsigned int label::nextID; /* base class of all the code structure types */ codeType::codeType(enum CODES t) { this->type=t; if (TRACE) { indent(); logfile << "Entering " << CODETYPES[t]; } ++indentLevel; } codeType::~codeType() { --indentLevel; if (TRACE) { indent(); logfile << "Leaving " << CODETYPES[this->getType()]; } } /* label definitions and helper routines */ shared_ptr