Adding more information on the basic structure for the lexer

This commit is contained in:
Abdelrahman Said 2023-06-12 07:42:24 +01:00
parent cf7b1352e8
commit 7525036df2

12
notes
View File

@ -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 |
---------