Package EDU.purdue.jtb.parser
Class TokenProduction
java.lang.Object
EDU.purdue.jtb.parser.TokenProduction
Describes the various regular expression productions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe first token from the input stream that represent this productionboolean
This is true if case is to be ignored within the regular expressions of this token productionboolean
This is true if this corresponds to a production that actually appears in the input grammar.int
The kind of this token production - TOKEN, SKIP, MORE, or SPECIALstatic final String[]
The image of the above constantsThe last token from the input stream that represent this productionString[]
The states in which this regular expression production exists.static final int
Definitions of constants that identify the kind of regular expression production this isThe list of regular expression specifications that comprise this production.static final int
Definitions of constants that identify the kind of regular expression production this isstatic final int
Definitions of constants that identify the kind of regular expression production this isstatic final int
Definitions of constants that identify the kind of regular expression production this is -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
TOKEN
public static final int TOKENDefinitions of constants that identify the kind of regular expression production this is- See Also:
-
SKIP
public static final int SKIPDefinitions of constants that identify the kind of regular expression production this is- See Also:
-
MORE
public static final int MOREDefinitions of constants that identify the kind of regular expression production this is- See Also:
-
SPECIAL
public static final int SPECIALDefinitions of constants that identify the kind of regular expression production this is- See Also:
-
kindImage
The image of the above constants -
lexStates
The states in which this regular expression production exists. If this array is null, then "invalid input: '<'*>" has been specified and this regular expression exists in all states. However, this null value is replaced by a String array that includes all lexical state names during the semanticization phase -
kind
public int kindThe kind of this token production - TOKEN, SKIP, MORE, or SPECIAL -
respecs
The list of regular expression specifications that comprise this production. Each entry is a "RegExprSpec" -
isExplicit
public boolean isExplicitThis is true if this corresponds to a production that actually appears in the input grammar. Otherwise (if this is created to describe a regular expression that is part of the BNF) this is set to false -
ignoreCase
public boolean ignoreCaseThis is true if case is to be ignored within the regular expressions of this token production -
firstToken
The first token from the input stream that represent this production -
lastToken
The last token from the input stream that represent this production
-
-
Constructor Details
-
TokenProduction
public TokenProduction()
-
-
Method Details
-
setLine
public final void setLine(int ln) - Parameters:
ln
- - the line to set
-
getLine
public final int getLine()- Returns:
- the line
-
setColumn
public final void setColumn(int cl) - Parameters:
cl
- - the column to set
-
getColumn
public final int getColumn()- Returns:
- the column
-