abstract class NASON::Lexer
Defined in:
nason/lexer.crConstructors
Instance Method Summary
- #next_token : NASON::Token
-
#next_token_expect_object_key
Requests the next token where the parser expects a json object key.
- #skip : Bool
- #skip=(skip : Bool)
- #token : Token
Instance methods inherited from class Reference
==(other : NASON::Any)
==
Instance methods inherited from class Object
===(other : NASON::Any)
===,
nil_or_null?
nil_or_null?,
not_null!
not_null!,
null?
null?,
to_nason(io : IO) : Nilto_nason : String to_nason, to_pretty_json(indent : String = " ") : String
to_pretty_json(io : IO, indent : String = " ") : Nil to_pretty_json
Class methods inherited from class Object
from_nason(string_or_io, root : String)from_nason(string_or_io) from_nason
Constructor Detail
Instance Method Detail
def next_token_expect_object_key
#
Requests the next token where the parser expects a json object key. In this case the lexer tries to reuse the String instances by using a StringPool.