A grammar supporting C language boosters (or possibly other mechanisms
bypassing internal dbtable).
These actually bypass most of our machinery and should only be used if
performance is paramount. Otherwise, CustomGrammars play much nicer with
the rest of the DC software.
Currently, only one kind of DirectGrammar is supported: C
boosters.
|
|
|
|
|
getCodeGen(grammar,
tableDef)
returns the code generator suitable for making code for grammar. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
buildSource(grammar,
td)
returns (possibly incomplete) C source for a booster to read into td. |
source code
|
|
|
|
getGrammarAndTable(grammarId)
returns a pair of directGrammar and table being fed for a cross-rd
reference. |
source code
|
|
|
|
|
|
|
getSource(grammarId)
returns a bytestring containing C source to parse grammarId. |
source code
|
|
|
|
|