Update Parserv2.cpp
This commit is contained in:
parent
37610790ac
commit
4e33d9d560
1 changed files with 41 additions and 1 deletions
42
Parserv2.cpp
42
Parserv2.cpp
|
@ -62,7 +62,6 @@ void displayTokenList(vector<string> input)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
vector<string> insertCMD(vector<string> input)
|
||||
{
|
||||
//relation name will be the first element of the vector of data returned by this function
|
||||
|
@ -137,6 +136,47 @@ vector<string> exitCMD(vector<string> input)
|
|||
return input;
|
||||
}
|
||||
|
||||
vector<string> saveCMD(vector<string> input)
|
||||
{
|
||||
if (input.size() > 3)
|
||||
{
|
||||
cout<<"Syntax error!"<<endl;
|
||||
}
|
||||
|
||||
cout<<"\nPassing the following arguments to dbEngine: "<<endl;
|
||||
cout<<"command :"<<input[0]<<endl;
|
||||
cout<<"argument: "<<input[1]<<endl;
|
||||
|
||||
return input;
|
||||
}
|
||||
|
||||
vector<string> closeCMD(vector<string> input)
|
||||
{
|
||||
if (input.size() > 3)
|
||||
{
|
||||
cout<<"Syntax error!"<<endl;
|
||||
}
|
||||
|
||||
cout<<"\nPassing the following arguments to dbEngine: "<<endl;
|
||||
cout<<"command :"<<input[0]<<endl;
|
||||
cout<<"argument: "<<input[1]<<endl;
|
||||
|
||||
return input;
|
||||
}
|
||||
|
||||
vector<string> openCMD(vector<string> input)
|
||||
{
|
||||
if (input.size() > 3)
|
||||
{
|
||||
cout<<"Syntax error!"<<endl;
|
||||
}
|
||||
|
||||
cout<<"\nPassing the following arguments to dbEngine: "<<endl;
|
||||
cout<<"command :"<<input[0]<<endl;
|
||||
cout<<"argument: "<<input[1]<<endl;
|
||||
|
||||
return input;
|
||||
}
|
||||
|
||||
vector<string> createCMD(vector<string> input)
|
||||
{
|
||||
|
|
Reference in a new issue