// // ParseDrop.cpp // SQL parser and interpreter // // Created by 王璇 on 17/2/5. // Copyright © 2017年 Xuan Wang. All rights reserved. // #include #include #include #include #include "lexanal.h" char ParseDrop(char check, char* tname, char* p, char* token, int token_code){ int i; //get next token--TABLE p=lex_anal( p, token, &token_code );//watch out for space if(token_code!=TABLE){ printf("Error: keyword TABLE excepted"); check='N'; return check; } //get next token--table name p=lex_anal( p, token, &token_code ); if(token_code!=IDENTIFIER){ printf("Error: table name expected"); check='N'; return check; } else{ //store table name for(i=0;i