public class Grammar2D extends Object
Constructor and Description |
---|
Grammar2D(Rule[] rules,
Type[] tokenTypes)
Construct a grammar using the given set of rules and token
types.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public Grammar2D(Rule[] rules, Type[] tokenTypes)
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.