struct

Glimmer::Highlight::Token

Inherits Struct < Value < Object

Token represents a single token in the source code.

Constructors

new(type : TokenType, value : String)
Source

Instance methods

comment?

Returns true if this token is a comment.

Source
number?

Returns true if this token is a number literal.

Source
string?

Returns true if this token is a string literal.

Source
type
Source
value
Source
whitespace?

Returns true if this token is whitespace.

Source