diff --git a/Parserv2.cpp b/Parserv2.cpp index 7e15a93..150bab1 100755 --- a/Parserv2.cpp +++ b/Parserv2.cpp @@ -112,27 +112,48 @@ vector exitCMD(vector input) vector createCMD(vector input) { if (input[0] != "CREATE") { - cout << "Error, create keyword is missing." < openCMD(vector input){ + if (input[0] != "OPEN") { + cout << "Error: open keyword is missing." < openCMD(vector input){ - // + cout << "relation: " << input[1] << endl; } vector closeCMD(vector input){ - // + if (input[0] != "CLOSE") { + cout << "Error: close keyword is missing." < saveCMD(vector input){ - //open-cmd ::== OPEN relation-name -//close-cmd ::== CLOSE relation-name -//save-cmd ::== SAVE relation-name + if (input[0] != "SAVE") { + cout << "Error: save keyword is missing." < updateCMD(vector input){