30#ifndef INCLUDE_CFL_GRAMMARBUILDER_H_
31#define INCLUDE_CFL_GRAMMARBUILDER_H_
83 const inline std::string
stripSpace(std::string
s)
const;
GrammarBase * build() const
Build grammarBase from fileName.
GrammarBase * build(Map< std::string, SVF::GrammarBase::Symbol > &preMap) const
Build grammarBase from fileName with preset str2KindMap.
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.
llvm::IRBuilder IRBuilder