Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
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
Source
id=
(id :
ID
)
Source
num
Source
num=
(num :
Float64
)
Source
to_s
(io)
Source