added printSegment class and started tester for framework
This commit is contained in:
@@ -8,9 +8,9 @@
|
||||
*/
|
||||
#include "yab2cpp.h"
|
||||
|
||||
unordered_map<string, shared_ptr<variable> >globals;
|
||||
unordered_map<string, shared_ptr<variable> >locals;
|
||||
unordered_map<string, shared_ptr<variable> >statics;
|
||||
unordered_map<string, shared_ptr<variableType> >globals;
|
||||
unordered_map<string, shared_ptr<variableType> >locals;
|
||||
unordered_map<string, shared_ptr<variableType> >statics;
|
||||
|
||||
/* These correspond to the enum COMPILE_ERRORS. */
|
||||
const char *COMPILE_ERROR_NAMES[]={
|
||||
@@ -179,6 +179,7 @@ void setUp()
|
||||
heap_h.open("output/heap.h");
|
||||
output_cpp << "#include <runtime.h>\n#include \"consts.h\"\n"
|
||||
<< "#include \"heap.h\"\n#include \"functions.h\"\n"
|
||||
<< "int main(int argc, char *argv[])\n{\n"
|
||||
<< "unsigned int state=start;\nint run(){\nwhile (state>=start){\n"
|
||||
<< "switch(state){\ncase start:" << endl;
|
||||
if (DUMP)
|
||||
|
||||
Reference in New Issue
Block a user