Package EDU.purdue.jtb.parser
Class TokenProduction
- java.lang.Object
-
- EDU.purdue.jtb.parser.TokenProduction
-
public class TokenProduction extends java.lang.Object
Describes the various regular expression productions.
-
-
Field Summary
Fields Modifier and Type Field Description Token
firstToken
The first token from the input stream that represent this productionboolean
ignoreCase
This is true if case is to be ignored within the regular expressions of this token productionboolean
isExplicit
This is true if this corresponds to a production that actually appears in the input grammar.int
kind
The kind of this token production - TOKEN, SKIP, MORE, or SPECIALstatic java.lang.String[]
kindImage
The image of the above constantsToken
lastToken
The last token from the input stream that represent this productionjava.lang.String[]
lexStates
The states in which this regular expression production exists.static int
MORE
Definitions of constants that identify the kind of regular expression production this isjava.util.List<RegExprSpec_>
respecs
The list of regular expression specifications that comprise this production.static int
SKIP
Definitions of constants that identify the kind of regular expression production this isstatic int
SPECIAL
Definitions of constants that identify the kind of regular expression production this isstatic int
TOKEN
Definitions of constants that identify the kind of regular expression production this is
-
Constructor Summary
Constructors Constructor Description TokenProduction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumn()
int
getLine()
void
setColumn(int cl)
void
setLine(int ln)
-
-
-
Field Detail
-
TOKEN
public static final int TOKEN
Definitions of constants that identify the kind of regular expression production this is- See Also:
- Constant Field Values
-
SKIP
public static final int SKIP
Definitions of constants that identify the kind of regular expression production this is- See Also:
- Constant Field Values
-
MORE
public static final int MORE
Definitions of constants that identify the kind of regular expression production this is- See Also:
- Constant Field Values
-
SPECIAL
public static final int SPECIAL
Definitions of constants that identify the kind of regular expression production this is- See Also:
- Constant Field Values
-
kindImage
public static final java.lang.String[] kindImage
The image of the above constants
-
lexStates
public java.lang.String[] lexStates
The states in which this regular expression production exists. If this array is null, then "<*>" 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 kind
The kind of this token production - TOKEN, SKIP, MORE, or SPECIAL
-
respecs
public java.util.List<RegExprSpec_> respecs
The list of regular expression specifications that comprise this production. Each entry is a "RegExprSpec"
-
isExplicit
public boolean isExplicit
This 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 ignoreCase
This is true if case is to be ignored within the regular expressions of this token production
-
firstToken
public Token firstToken
The first token from the input stream that represent this production
-
lastToken
public Token lastToken
The last token from the input stream that represent this production
-
-