Fixed a crash/logic bug in algebraic parser stack underflow

Removed some debug code
This commit is contained in:
David Anderson
2004-08-11 09:06:00 +00:00
parent c47eb57871
commit 3a04fa0788
2 changed files with 36 additions and 22 deletions

View File

@ -28,8 +28,6 @@ int main(int argc, char **argv)
{
Compiler Program;
getchar();
get_options(argc, argv, Program);
if (filename.size() < 1)
@ -41,15 +39,13 @@ int main(int argc, char **argv)
Program.Load(filename);
if (Program.Parse())
{
//Program.PrintCodeList();
if (Program.Compile())
printf("Done.\n");
else
printf("Compile build failed.\n");
} else {
printf("Compile failed.\n");
}
/*ErrorMngr CError(&Program);
std::string f("232+4*4");
int val = Program.Eval(f);
printf("Evaluation: %d\n", val);*/
exit(0);
}