- PyGrammar_AddAccelerators
void PyGrammar_AddAccelerators(grammar* g)
- PyGrammar_FindDFA
dfa* PyGrammar_FindDFA(grammar* g, int type)
- PyGrammar_LabelRepr
char* PyGrammar_LabelRepr(label* lb)
- PyGrammar_RemoveAccelerators
void PyGrammar_RemoveAccelerators(grammar*)
- addarc
void addarc(dfa* d, int from, int to, int lbl)
- adddfa
dfa* adddfa(grammar* g, int type, char* name)
- addfirstsets
void addfirstsets(grammar* g)
- addlabel
int addlabel(labellist* ll, int type, char* str)
- addstate
int addstate(dfa* d)
- findlabel
int findlabel(labellist* ll, int type, char* str)
- newgrammar
grammar* newgrammar(int start)
- printgrammar
void printgrammar(grammar* g, FILE* fp)
- printnonterminals
void printnonterminals(grammar* g, FILE* fp)
- translatelabels
void translatelabels(grammar* g)
Mirror grammar.h
Grammar interface