/* ** Yab2Cpp ** ** Transpiler by Samuel D. Crow ** ** Based on Yab ** */ #include "yab2cpp.h" /* base class of all the code structure types */ codeType::codeType(enum CODES t) { nesting.push_back(shared_ptr(this)); this->type=t; } shared_ptr codeType::getCurrent() { return nesting.back(); } void codeType::close() { nesting.pop_back(); } /* label definitions and helper routines */ shared_ptr