write local variable declarations into a separate file

This commit is contained in:
Marc Zinnschlag 2010-06-28 14:17:50 +02:00
parent a3ad61b4d0
commit ba847ae9d8
5 changed files with 33 additions and 0 deletions

View file

@ -60,6 +60,10 @@ int main (int argc, char **argv)
codeFile.write (reinterpret_cast<const char *> (&code[0]),
code.size()*sizeof (Interpreter::Type_Code));
std::ofstream localFile ((filename + ".locals").c_str());
parser.getLocals().write (localFile);
return 0;
}