Class: Token

Token

Constructor

new Token(text, line, char)

A Token representing an atomic group of characters in the assembler code
Parameters:
Name Type Description
text The content of the token
line The line in which this token is (used for error messages)
char The character where exactly this token is (used for error messages)
Source:

Methods

getType()

Returns the type of this Token (Literal, Label, ...)
Source:

toString() → {string}

Returns the string representation of a token. This should only be used for testing purpose
Source:
Returns:
Type
string