Adding more information on the basic structure for the lexer
This commit is contained in:
		
							
								
								
									
										12
									
								
								notes
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								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        | | ||||
| 	     --------- | ||||
|   | ||||
		Reference in New Issue
	
	Block a user