ctext
index
Name CGrammar
Examples
PGrammar grammar = new PGrammar(this, "myGrammar.g");
String text = grammar.expand();
println("Expanded: "+text);
Description PText wrapper for simple context-free grammar.

Constructors
CGrammar(parent, grammarFileName);
Methods
dumpDefinitions ( )   Prints the definition map to the console.

expand ( )   Expands a grammar from the given symbol symbol

expandFrom ( )   Dynamically expands a grammar from the given String if the part-of-speech (via QTagParser) is found in the grammar.

getDefinition ( )   Gets a production definition by name

setDefinition ( )   Stores a production definition by name

Usage Web & Application
Related