30 lines
282 B
Plaintext
30 lines
282 B
Plaintext
TOKENS
|
|
Symbols
|
|
Array notation
|
|
[
|
|
]
|
|
Object notation
|
|
{
|
|
}
|
|
:
|
|
Separator
|
|
,
|
|
String
|
|
"
|
|
\ (for escape sequences)
|
|
Numerical
|
|
-
|
|
.
|
|
eE (exponents only)
|
|
+ (exponents only)
|
|
Keywords
|
|
true
|
|
false
|
|
null
|
|
Key
|
|
strings only
|
|
|
|
LEXER STATES
|
|
START
|
|
ERROR
|