// // Created by lenfrex on 2023/5/5. // #ifndef LEXER_CPP_CHECKER_H #define LEXER_CPP_CHECKER_H #include "stack" #include "grammar/Grammar.h" class Checker { private: Grammar grammar; static std::string getStackContent(std::stack source); public: explicit Checker(Grammar grammar); bool identifyString(std::string input); static bool canDeducedEmpty(const std::set &productions); }; #endif //LEXER_CPP_CHECKER_H