Delete lab.cpp

This commit is contained in:
Valk Richard Li 2019-08-08 22:45:12 +08:00 committed by GitHub
parent 0e98edbf61
commit d458897e3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 39 deletions

39
lab.cpp
View File

@ -1,39 +0,0 @@
#include <iostream>
#include <fstream>
#include <cstring>
#include <thread>
#include <cstdlib>
#include "nasal.h"
using namespace nasal;
int main()
{
std::cout<<">> input \"help\" to find help."<<std::endl;
std::string Command;
while(1)
{
std::cout<<">> ";
std::cin>>Command;
if(Command=="help")
{
std::cout<<">> 1.input file name to run the nasal script."<<std::endl;
std::cout<<">> 2.command cls to clear the screen."<<std::endl;
std::cout<<">> 3.command exit to shut down the program."<<std::endl;
}
else if(Command=="cls")
system("cls");
else if(Command=="exit")
{
nasal_var_stack.delete_all();
nasal_func_stack.delete_all();
break;
}
else
{
RunProcess(Command);
nasal_lexer.run();
}
}
return 0;
}