public class Token extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CLOSE_BRACKET
Token id for closing brackets
|
static int |
EPSILON
Token id for the epsilon terminal
|
static int |
FUNCTION
Token id for function names
|
static int |
MULTDIV
Token id for multiplication or division
|
static int |
NUMBER
Token id for numbers
|
static int |
OPEN_BRACKET
Token id for opening brackets
|
static int |
PLUSMINUS
Token id for plus or minus
|
int |
pos
the position of the token in the input string
|
static int |
RAISED
Token id for the exponentiation symbol
|
String |
sequence
the string that the token was created from
|
int |
token
the token identifier
|
static int |
VARIABLE
Token id for variable names
|
public static final int EPSILON
public static final int PLUSMINUS
public static final int MULTDIV
public static final int RAISED
public static final int FUNCTION
public static final int OPEN_BRACKET
public static final int CLOSE_BRACKET
public static final int NUMBER
public static final int VARIABLE
public final int token
public final String sequence
public final int pos
public Token(int token,
String sequence,
int pos)
token - the token identifiersequence - the string that the token was created frompos - the position of the token in the input stringCopyright © 2017. All rights reserved.