abstract class NASON::Lexer

Defined in:

nason/lexer.cr

Constructors

Instance Method Summary

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) : Nil
to_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

def self.new(string : String) #

[View source]
def self.new(io : IO) #

[View source]
def self.new #

[View source]

Instance Method Detail

def next_token : NASON::Token #

[View source]
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.


[View source]
def skip : Bool #

[View source]
def skip=(skip : Bool) #

[View source]
def token : Token #

[View source]