From 7525036df25de2468d2025bd3a8cdc8c94db042a Mon Sep 17 00:00:00 2001 From: Abdelrahman Said Date: Mon, 12 Jun 2023 07:42:24 +0100 Subject: [PATCH] Adding more information on the basic structure for the lexer --- notes | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/notes b/notes index da0da80..ed642ce 100644 --- a/notes +++ b/notes @@ -24,6 +24,18 @@ TOKENS Key strings only +Implement stack data structure for pushing and pulling states when necessary + LEXER STATES START ERROR + END + VALUE + OBJECT_KEY + --------- + OBJECT | + ARRAY | + PRIMITIVES |------> Can be values + STRING--------|------> Only one that can be an object key + NUMBER | + ---------