|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Token | |
---|---|
slogo.jelan.parser | This package is responsible for parsing the language Elan. |
slogo.jelan.parser.tokens |
Uses of Token in slogo.jelan.parser |
---|
Methods in slogo.jelan.parser that return Token | |
---|---|
Token |
ElanInterpreter.getToken()
returns the current token, doesn't fetch a new one |
Token |
ElanInterpreter.match(Token rhs)
try to match a token, if unsuccessful throw an exception, otherwise match succeeds, and next token is obtained and returned |
Methods in slogo.jelan.parser with parameters of type Token | |
---|---|
void |
ElanInterpreter.error(Token t)
|
Token |
ElanInterpreter.match(Token rhs)
try to match a token, if unsuccessful throw an exception, otherwise match succeeds, and next token is obtained and returned |
Uses of Token in slogo.jelan.parser.tokens |
---|
Classes in slogo.jelan.parser.tokens that implement Token | |
---|---|
class |
AssignmentToken
Represents the assignment token ("=") |
class |
CharToken
A token represented by a single character, e.g., '*', ';', '[' and so on; the method equals compares a CharToken as equal to another CharToken encapsulating the same character. |
class |
EOFToken
This represents an end-of-file token Uses the singleton pattern since there's no reason to have more than one such token. |
class |
EOLToken
This represents an end-of-line token Uses the singleton pattern since there's no reason to have more than one such token. |
class |
EqualToken
|
class |
IdentifierToken
Represents an identifier (a variable name) |
class |
LeftBracketToken
|
class |
LeftParenToken
|
class |
MinusToken
|
class |
NumberToken
Represents a number (using doublevalues). |
class |
PlusToken
|
class |
PrintToken
|
class |
RepeatToken
|
class |
ReservedToken
Represents a reserved word |
class |
RightBracketToken
|
class |
RightParenToken
|
class |
SlashToken
|
class |
StarToken
|
class |
VariableToken
Represents a variable |
Methods in slogo.jelan.parser.tokens that return Token | |
---|---|
static Token |
TokenFactory.parse(Tokenizer tokenizer)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |