public interface IProductionRule
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name of production rule.
|
boolean |
isAllowed(String token)
Checks whether the token is allowed or not.
|
boolean |
isApproaching(String pattern)
Checks whether the given token is approachable using any of the pattern
or not.
|
String getName()
boolean isApproaching(String pattern)
token - the token, partially or full constructed, to check whether
it can approach to any expression token pattern or not.true if the token pattern is approachable false otherwise.boolean isAllowed(String token)
token - the token which is to be checked for its validitytrue if the token is allowed false otherwise.