Update Parserv2.cpp

This commit is contained in:
Brandon Jackson 2015-09-22 21:54:13 -05:00
parent 37610790ac
commit 4e33d9d560

View file

@ -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)
{