30 #ifndef INCLUDE_CFL_GRAMMARBUILDER_H_
31 #define INCLUDE_CFL_GRAMMARBUILDER_H_
GrammarBase * build(Map< std::string, SVF::GrammarBase::Symbol > &preMap) const
Build grammarBase from fileName with preset str2KindMap.
GrammarBase * build() const
Build grammarBase from fileName.
GrammarBuilder(std::string fileName)
const std::string parseProductionsString() const
Parse start symbol and production from file string.
const std::string stripSpace(std::string s) const
Strip front and tail space.
const std::vector< std::string > loadWordProductions() const
Parse whole production string to production vector.
std::unordered_map< Key, Value, Hash, KeyEqual, Allocator > Map