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
Name | Description |
---|---|
this
|
Constructs a new token stream. |
Properties
Name | Type | Description |
---|---|---|
empty [get]
|
bool | Determines if the token stream has been exhausted. |
front [get]
|
const(JSONToken!String) | Returns the current token in the stream. |
input [get]
|
Input | Returns a copy of the underlying input range. |
location [get]
|
Location | The current location of the lexer. |
Methods
Name | Description |
---|---|
popFront
|
Skips to the next token. |