Package | Description |
---|---|
parsii.eval | |
parsii.tokenizer |
Modifier and Type | Method and Description |
---|---|
protected void |
Parser.expect(Token.TokenType type,
String trigger)
Signals that the given token is expected.
|
Modifier and Type | Method and Description |
---|---|
Token.TokenType |
Token.getType()
Returns the basic classification of this token
|
static Token.TokenType |
Token.TokenType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Token.TokenType[] |
Token.TokenType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static Token |
Token.create(Token.TokenType type,
Position pos)
Creates a new token with the given type, using the given position as location info.
|
static Token |
Token.createAndFill(Token.TokenType type,
Char ch)
Creates a new token with the given type, using the Char a initial trigger and content.
|
boolean |
Token.is(Token.TokenType type)
Determines if the token has the given type
|
boolean |
Token.matches(Token.TokenType type,
String trigger)
Determines if this token has the given type and trigger.
|
Copyright © 2020. All rights reserved.