public class ParseRule extends Object
| Constructor and Description | 
|---|
| ParseRule(int a,
         int b,
         int c)Creates a new instance of ParseRule | 
| Modifier and Type | Method and Description | 
|---|---|
| int[] | getComponents()Returns an array of rule components { A, B, C } where A -> B C | 
| int | match(int b,
     int c)Checks to see if the arguments match the right hand side of
 the rule | 
public ParseRule(int a,
         int b,
         int c)
a - variable A of a production of the form A -> BCb - variable B of a production of the form A -> BCc - variable C of a production of the form A -> BCpublic int match(int b,
        int c)
b - variable B of a production of the form A -> BCc - variable C of a production of the form A -> BCpublic int[] getComponents()