#ifndef _GRAMMAR_H_ #define _GRAMMAR_H_ #include #include #include #include typedef std::map::value_type tSSValue; class Grammar { std::string gfilename; boost::filesystem::path gfile; boost::filesystem::path gpath; std::map letypes; std::map lexemes; std::set lex_rules; void readLexicon(const std::string &fn); void readLexRules(const std::string &fn); public: Grammar(const std::string &); ~Grammar(); std::string letype(std::string &le); std::string lexeme(std::string &le); bool is_lexrule(std::string rule); }; #endif