struct

Calc::Lexer::Token

Inherits Struct < Value < Object

Holds the token ID and a value (if it has one)

Constructors

new(id : Calc::Lexer::ID = ID::None, num : Float64 = 0.0)
Source

Instance methods

id=(id : ID)
Source
num=(num : Float64)
Source
to_s(io)
Source