|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<LpTokenType>
lp.parse.LpTokenType
public enum LpTokenType
Enumeration of token types returned by a LpLexer
and further used by
parsers to parse source code.
LpLexer.getTokenType()
Enum Constant Summary | |
---|---|
COMMA
A comma. |
|
DOT
A dot. |
|
EOF
Returned when the end of input is reached. |
|
LEFT_PAREN
A left parenthesis. |
|
LOWERCASE_WORD
Any string of letters, numbers and underscores not beginning with an uppercase letter. |
|
RIGHT_PAREN
A right parenthesis. |
|
RULE_ARROW
An arrow separating a rule's head from a rule's body. |
|
UNKNOWN_CHAR
Everything that does not fit into some of the previous categories is identified as this token type. |
|
UPPERCASE_WORD
Any string of letters, numbers and underscores beginning with an uppercase letter. |
Field Summary | |
---|---|
private String |
description
Description of the token. |
Method Summary | |
---|---|
String |
getDescription()
Getter method for the description. |
static LpTokenType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static LpTokenType[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final LpTokenType LEFT_PAREN
public static final LpTokenType RIGHT_PAREN
public static final LpTokenType COMMA
public static final LpTokenType DOT
public static final LpTokenType RULE_ARROW
public static final LpTokenType LOWERCASE_WORD
LpLexer
for details.
public static final LpTokenType UPPERCASE_WORD
LpLexer
for details.
public static final LpTokenType EOF
public static final LpTokenType UNKNOWN_CHAR
Field Detail |
---|
private final String description
Method Detail |
---|
public static final LpTokenType[] values()
for(LpTokenType c : LpTokenType.values()) System.out.println(c);
public static LpTokenType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic String getDescription()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |