Package | Description |
---|---|
antlr.preprocessor |
Modifier and Type | Method and Description |
---|---|
void |
Grammar.addRule(Rule r) |
void |
Grammar.inherit(Rule r,
Grammar superG) |
boolean |
Rule.narrowerVisibility(Rule rule)
If 'rule' narrows the visible of 'this', return true;
For example, 'this' is public and 'rule' is private,
true is returned.
|
boolean |
Rule.sameSignature(Rule rule)
Two rules have the same signature if they have:
same name
same return value
same args
I do a simple string compare now, but later
the type could be pulled out so it is insensitive
to names of args etc...
|