Adding more information on the basic structure for the lexer
This commit is contained in:
1 parent
cf7b1352e8
commit
7525036df2
1 file changed
+12
@@ -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 |
|
||||||
|
---------
|
||||||
Reference in new issue
Block a user