Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
struct
Token
Inherits
Struct
/
Value
/
Object
Constants
NULL_TOKEN =
Token
.new("eof", "", nil, nil)
Constructors
new
(type :
String
, value :
Char
|
Int32
|
String
|
Nil
, start :
Char
|
Int32
|
String
|
Nil
, end __arg0 :
Char
|
Int32
|
String
|
Nil
, json_value :
JSON::Any
|
Nil
= nil)
Source
Instance methods
end
Source
end=
(end __arg0 :
Char
|
Int32
|
String
|
Nil
)
Source
json_value
Source
json_value=
(json_value :
JSON::Any
|
Nil
)
Source
start
Source
start=
(start :
Char
|
Int32
|
String
|
Nil
)
Source
type
Source
type=
(type :
String
)
Source
value
Source
value=
(value :
Char
|
Int32
|
String
|
Nil
)
Source