Adding more information on the basic structure for the lexer
This commit is contained in:
parent
cf7b1352e8
commit
7525036df2
12
notes
12
notes
@ -24,6 +24,18 @@ TOKENS
|
|||||||
Key
|
Key
|
||||||
strings only
|
strings only
|
||||||
|
|
||||||
|
Implement stack data structure for pushing and pulling states when necessary
|
||||||
|
|
||||||
LEXER STATES
|
LEXER STATES
|
||||||
START
|
START
|
||||||
ERROR
|
ERROR
|
||||||
|
END
|
||||||
|
VALUE
|
||||||
|
OBJECT_KEY
|
||||||
|
---------
|
||||||
|
OBJECT |
|
||||||
|
ARRAY |
|
||||||
|
PRIMITIVES |------> Can be values
|
||||||
|
STRING--------|------> Only one that can be an object key
|
||||||
|
NUMBER |
|
||||||
|
---------
|
||||||
|
Loading…
Reference in New Issue
Block a user