Tokens.
The scanner and the parser form together the 'Parse' step in the loading process.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the next token is one of the given types. Returns
false if no more tokens are available.token IDs to match with choicesCheck if the next token is one of the given types. |
| public default boolean | Returns: true if the next token is the given type. Returns false if no
more tokens are available.token ID to match with choiceCheck if the next token is the given type. |
| public Token | |
| public Token | |
| public void |
| checkToken | back to summary |
|---|---|
| public boolean checkToken(Token. Check if the next token is one of the given types.
| |
| checkToken | back to summary |
|---|---|
| public default boolean checkToken(Token. Check if the next token is the given type.
| |
| next | back to summary |
|---|---|
| public Token next() Redeclares java. Returns the next token.
The token will be removed from the stream. (Every invocation of this method must happen after
calling either
| |
| peekToken | back to summary |
|---|---|
| public Token peekToken() Return the next token, but do not delete it from the stream.
| |
| resetDocumentIndex | back to summary |
|---|---|
| public void resetDocumentIndex() Set the document index to 0 after a document end | |