| Constructor and Description |
|---|
RuleRegExp(java.lang.String ruleName,
java.lang.String regExp)
The rule specified by the regular expression.
|
| Modifier and Type | Method and Description |
|---|---|
int |
cost(java.util.Stack<Node> stack)
This function returns the cost of the rule for the specified stack.
|
java.lang.String |
getName() |
public RuleRegExp(java.lang.String ruleName,
java.lang.String regExp)
ruleName - name of the ruleregExp - regular expression for the rulepublic int cost(java.util.Stack<Node> stack) throws SemanticException
cost in interface Rulestack - Node stack encountered so farSemanticExceptionCopyright © 2012 The Apache Software Foundation