Struct JSONLexerRange

A lazy input range of JSON tokens.

struct JSONLexerRange(Input, LexOptions options = LexOptions.init, String)
  
if (isInputRange!Input && (isSomeChar!(ElementType!Input) || isIntegral!(ElementType!Input)));

This range type takes an input string range and converts it into a range of JSONToken values.

See lexJSON for more information.

Constructors

NameDescription
this Constructs a new token stream.

Properties

NameTypeDescription
empty[get] boolDetermines if the token stream has been exhausted.
front[get] const(JSONToken!String)Returns the current token in the stream.
input[get] InputReturns a copy of the underlying input range.
location[get] LocationThe current location of the lexer.

Methods

NameDescription
popFront Skips to the next token.