Serialized Form


Package grammar

Class grammar.Grammar extends java.lang.Object implements Serializable

serialVersionUID: 6934602848060087695L

Serialized Fields

variables

java.util.List<E> variables
Set of Variables.


terminals

java.util.List<E> terminals
Set of Terminals.


productions

java.util.List<E> productions
Set of Production rules.


startVariable

java.lang.String startVariable
Start variable.

Class grammar.Production extends java.lang.Object implements Serializable

serialVersionUID: 544968468774994963L

Serialized Fields

LHS

java.lang.String LHS
Left hand side of production


RHS

java.lang.String[] RHS
Right hand side of production


Package grammar.cfg

Class grammar.cfg.MyGrammar extends Grammar implements Serializable

serialVersionUID: -801229165522722951L

Serialized Fields

myVariables

java.lang.String[] myVariables
Array of Variables


myTerminals

java.lang.String[] myTerminals
Array of Terminals


indexOfStart

int indexOfStart
Index of start variable.


myProductions

MyProduction[] myProductions
Array of myproductions


infoOfPros

int[][] infoOfPros
Information of sorted productions w.r.t. variables: infoOfPros[i][0]: the first index of i-variable's terminal productions; infoOfPros[i][1]: the number of i-variable's terminal productions; infoOfPros[i][2]: the first index of i-variable's variable productions; infoOfPros[i][3]: the number of i-variable's variable productions.


sorted

boolean sorted
Denoting whether the grammar is sorted or not.


indexed

boolean indexed
Denoting whether the grammar is indexed or not.

Class grammar.cfg.MyProduction extends Production implements Serializable

serialVersionUID: 1815822722325814079L

Serialized Fields

indexOfLHS

int indexOfLHS
Index of production's LHS w.r.t. variables.


indexOfRHS

int[] indexOfRHS
Indices of production's RHS w.r.t. variables(+) and terminals(-).


indexOfRHSVar

int[] indexOfRHSVar
Indices of RHS's variables w.r.t. variables(+)


indexed

boolean indexed
Denotes whether the index data has been set or not