mutils ~master (2018-10-28T20:05:58Z)
Dub
Repo
JSONLexer
mutils
serializer
json
Undocumented in source.
struct
JSONLexer {
enum
Token
;
alias
characterTokens
=
AliasSeq
!(
'['
,
']'
,
'{'
,
'}'
,
'('
,
')'
,
','
,
':'
)
;
string
code
;
string
slice
;
bool
skipUnnecessaryWhiteTokens
;
uint
line
;
uint
column
;
this
(string code, bool skipWhite, bool skipComments);
void
clear
();
TokenData
checkNextToken
();
TokenData
getNextToken
();
static
void
toChars
(TokenData token, Vec vec);
}
Constructors
this
this
(string code, bool skipWhite, bool skipComments)
Undocumented in source.
Members
Aliases
characterTokens
alias
characterTokens
=
AliasSeq
!(
'['
,
']'
,
'{'
,
'}'
,
'('
,
')'
,
','
,
':'
)
Undocumented in source.
Enums
Token
enum
Token
Undocumented in source.
Functions
checkNextToken
TokenData
checkNextToken
()
Undocumented in source. Be warned that the author may not have intended to support it.
clear
void
clear
()
Undocumented in source. Be warned that the author may not have intended to support it.
getNextToken
TokenData
getNextToken
()
Undocumented in source. Be warned that the author may not have intended to support it.
Static functions
toChars
void
toChars
(TokenData token, Vec vec)
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
code
string
code
;
Undocumented in source.
column
uint
column
;
Undocumented in source.
line
uint
line
;
Undocumented in source.
skipUnnecessaryWhiteTokens
bool
skipUnnecessaryWhiteTokens
;
Undocumented in source.
slice
string
slice
;
Undocumented in source.
Meta
Source
See Implementation
mutils
serializer
json
aliases
JSONSerializerToken
classes
JSONSerializer
structs
JSONLexer