Package | Description |
---|---|
org.stekikun.dolmen.codegen |
Modifier and Type | Method and Description |
---|---|
SourceMapping |
CodeBuilder.getSourceMapping() |
static SourceMapping |
AutomataOutput.output(Writer writer,
String className,
Config config,
Automata aut)
Generates the code from the automata
aut in
a Java class with name className , exported
using the given writer and parameterized
by the configuration config . |
static SourceMapping |
GrammarOutput.output(Writer writer,
String className,
Config config,
Grammar grammar,
Grammars.PredictionTable predict)
Outputs to
writer the definition of a top-down
parser for the given grammar , provided the prediction table
predict has no conflicts. |
static SourceMapping |
AutomataOutput.outputDefault(Writer writer,
String className,
Automata aut)
Same as
AutomataOutput.output(Writer, String, Config, Automata)
but the the default configuration. |
static SourceMapping |
GrammarOutput.outputDefault(Writer writer,
String className,
Grammar grammar,
Grammars.PredictionTable predict)
Same as
GrammarOutput.output(Writer, String, Config, Grammar, Grammars.PredictionTable)
with the default configuration Config.DEFAULT . |