|
RiTa index |
|||||||||||||||||||||||||
| Name | RiGrammar | ||||||||||||||||||||||||
| Examples | RiGrammar grammar = new RiGrammar(this, "myGrammar.g");
String text = grammar.expand();
println("Expanded: "+text); |
||||||||||||||||||||||||
| Description | Implementation of a (probabalistic) context-free grammar (with specific
literary extensions) that performs generation from user-specified grammars. RiTa grammar files are plain text files (generally ending with the '.g' extension and residing in the 'data' folder) that follow the format below: {
<start>
<token1> | <token2> | <token3>
}
{
<token2>
terminal1 |
terminal2 | <token1>
# this is a comment
}
...
Primary methods of interest:
|
||||||||||||||||||||||||
| Constructors | RiGrammar(parent, grammarFileName); |
||||||||||||||||||||||||
| Parameters |
|
||||||||||||||||||||||||
| Methods |
|
||||||||||||||||||||||||
| Usage | Web & Application | ||||||||||||||||||||||||
| Related |