upd: first version of lexer

This commit is contained in:
2023-12-13 08:59:59 +00:00
parent 132eeded36
commit 2d18a302f2
7 changed files with 545 additions and 8 deletions

View File

@ -4,7 +4,27 @@
#include <sstream>
#include <string>
#include <vector>
bool CommandSuLexer(const std::string &command, std::string &user_id,
std::string &password);
bool CommandLogoutLexer(const std::string &command);
bool CommandRegisterLexer(const std::string &command, std::string &user_id,
std::string &password, std::string &username);
bool CommandPasswdLexer(const std::string &command, std::string &user_id,
std::string &old_password, std::string &new_password);
bool CommandUseraddLexer(const std::string &command, std::string &user_id,
std::string &password, int &privilege,
std::string &username);
bool CommandDeleteLexer(const std::string &command, std::string &user_id);
bool CommandShowLexer(const std::string &command, std::string &ISBN,
std::string &name, std::string &author,
std::string &keyword);
bool CommandBuyLexer(const std::string &command, std::string &ISBN,
int &quantity);
bool CommandSelectLexer(const std::string &command, std::string &ISBN);
bool CommandModifyLexer(const std::string &command, std::string &ISBN,
std::string &name, std::string &author,
std::string &keyword, double &price);
bool CommandImportLexer(const std::string &command, int &quantity,
double &total_cost);
bool CommandShowfinanceLexer(const std::string &command,int &count);
#endif // PROTECTOR_LEXER_H