Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
C
D
G
M
R
S
T
A
add(Vector<String>)
- Method in class
Definition
pre: prod is a non-null vector of Strings
add(String, Definition)
- Method in class
DefinitionTable
Adds a string-value association to the table.
C
contains(String)
- Method in class
DefinitionTable
Checks for an entry associated with a particular string.
D
Definition
- Class in
<Unnamed>
Definition()
- Constructor for class
Definition
Create a new definition for a non-terminal
DefinitionTable
- Class in
<Unnamed>
A simple table of definitions for a Context Free Grammar.
DefinitionTable()
- Constructor for class
DefinitionTable
Constructs an empty symbol table.
G
get(int)
- Method in class
Definition
pre: 0 <= index < size() post: return the production at given index
get(String)
- Method in class
DefinitionTable
Gets a value associated with a string, from the table.
M
main(String[])
- Static method in class
DefinitionTable
An example method that makes use of a definition table.
main(String[])
- Static method in class
RandomSentenceGenerator
R
RandomSentenceGenerator
- Class in
<Unnamed>
A Random Sentence Generator This class currently parses a grammar file from standard input.
RandomSentenceGenerator(Scanner)
- Constructor for class
RandomSentenceGenerator
Create a new grammar from the given file.
S
size()
- Method in class
Definition
post: return the number of productions
T
toString()
- Method in class
Definition
Print out the productions for this definition.
toString()
- Method in class
DefinitionTable
Returns a string representation of the table.
toString()
- Method in class
RandomSentenceGenerator
Print out the grammar.
A
C
D
G
M
R
S
T
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes