grammarbuilder.hh 340 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

#ifndef grammarbuilder_hh
#define grammarbuilder_hh


#include "parser.hh"

namespace belr{

class ABNFGrammarBuilder{
public:
	ABNFGrammarBuilder();
	shared_ptr<Grammar> createFromAbnf(const string &path);
private:
	void addRule(void *list, void *rule);
	void *createRuleList();
	void *createRule();
18
	Parser<void*> mParser;
19 20 21 22 23
};

}

#endif