How vyogami/vadi works
Main Components
a) REPL (Interactive Shell)
b) Interpreter Core Components:
• Lexer
• Parser
• Interpreter
c) Memory Management
d) Type System
e) Utility Components
Component Relationships
User Input -> REPL -> Lexer -> Parser -> Interpreter -> Output
[User Input] → [REPL Interface]
[Lexer] → [Parser] → [Interpreter]
[Memory Manager] [Type System]
• ↑ ↑
• [Core Processing]────┘
Key Relationships to Highlight
• How the lexer breaks input into tokens (src/vadi/tokens.py)
• Parser's creation of the parse tree (src/vadi/parser.py)
• Demonstrate the interpreter's execution flow (src/vadi/interpreter.py)
• Memory management integration (src/vadi/memory.py)
• Type system interactions (src/vadi/typedef.py)
Additional Elements
• Version compatibility note (Python >=3.10)
Technical Details
• Recursive Descent Parsing technique
• Supported data types (Integer, Float)
• Variable declaration flow