struct
TOML::Token
- TOML::Token
- Struct
- Value
- Object
Overview
A lexed token.
#raw is the verbatim slice of source consumed by this token,
including delimiters for strings and including the leading #
for comments. The serializer can re-emit #raw as-is to achieve
byte-identical round-trips for unmodified documents.
#line and #column are 1-based and point at the start of the
token, useful for error messages.
Defined in:
toml/token.crConstructors
Instance Method Summary
- #column : Int32
- #kind : TokenKind
- #line : Int32
- #raw : String
-
#to_s(io : IO) : Nil
Same as
#inspect(io).