|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.sketch.parser2d.Grammar2D
public class Grammar2D
A grammar is a collection of rules that implement productions and a collection of tokens that are expected from the low-level recognizer in order for these rules to make sense.
Constructor Summary | |
---|---|
Grammar2D(Rule[] rules,
Type[] tokenTypes)
Construct a grammar using the given set of rules and token types. |
Method Summary | |
---|---|
Rule[] |
getRules()
Return the set of rules that comprises this grammar. |
Type[] |
getTokenTypes()
Return the set of token types that the grammar expects from the low-level recognizer in order to function properly. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Grammar2D(Rule[] rules, Type[] tokenTypes)
Method Detail |
---|
public Rule[] getRules()
public Type[] getTokenTypes()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |