Modifier and Type | Field and Description |
---|---|
Token.Type |
Token.type
Token type
|
Modifier and Type | Method and Description |
---|---|
static Token.Type |
Token.Type.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Token.Type[] |
Token.Type.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
DecafLexer.addTokenPattern(Token.Type type,
String regex)
Add a regular expression that describes a particular type of token.
|
boolean |
DecafParser.isNextToken(Queue<Token> tokens,
Token.Type type)
Returns true if and only if the head of the queue is a token of the
expected type.
|
static String |
Token.typeToString(Token.Type type) |
Constructor and Description |
---|
Token(Token.Type type) |
Token(Token.Type type,
String text) |
Token(Token.Type type,
String text,
SourceInfo source) |
Copyright © 2019. All rights reserved.