abstract class JSON::Lexer

Superclass hierarchy

Object
Reference
JSON::Lexer

Direct Known Subclasses

JSON::Lexer::IOBased, JSON::Lexer::StringBased

Defined in:

Class Method Summary

Instance Method Summary

Class Method Detail

def self.new(io : IO)

def self.new(string : String)

def self.new

Instance Method Detail

def next_token

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.


def skip

def skip=(skip)

def token