This commit is contained in:
Valk Richard Li
2019-09-22 03:28:52 -05:00
committed by GitHub
parent c874f9cd19
commit e7dbfff4bb
2 changed files with 221 additions and 9 deletions

View File

@@ -23,7 +23,6 @@ int main()
std::cout<<">> 7. [del ] |delete program in memory."<<std::endl;
std::cout<<">> 8. [run ] |run the programme in stack. (-lexer -parser)"<<std::endl;
std::cout<<">> 9. [rs ] |check the source program."<<std::endl;
std::cout<<">>10. [rule ] |see rules of the language."<<std::endl;
}
else if(command=="cls")
{
@@ -72,11 +71,6 @@ int main()
// pas.gen_main_prog();
pas.run();
}
else if(command=="rule")
{
std::cout<<">>[Rule] Token types that you can use: number + - * /"<<std::endl;
std::cout<<">>[Rule] Each binary operator should have two numbers around it like: 1 + 1"<<std::endl;
}
else
prog.input_file(command);
}