How divpreeet/scurvyscript works
Main Components
The system can be divided into three major layers:
• Web Interface Layer
• Language Processing Layer
• Runtime Layer
Detailed Component Breakdown
A. Web Interface Components (Frontend):
• HTML template (templates/index.html)
• Static assets (CSS and JavaScript)
• Flask web server (app.py)
B. Language Processing Pipeline:
1. Lexer (lexer.py) - Tokenization
2. Parser (parse.py) - Syntax Analysis
3. Interpreter (interpreter.py) - Execution
C. Supporting Components:
• Token Definitions (tokens.py)
• Data Structures (data.py)
• Interactive Shell (shell.py)
Component Relationships
User Input -> Web Interface -> Language Processing Pipeline -> Output
Specific Elements
• Web Interface |
• Flask (app.py) | |
• Templates | |
• Static Files | |
• ↓
• Language Processing |
• Lexer | |
• Parser | |
• Interpreter | |
• ↓
• Supporting Systems |
• Tokens | |
• Data | |
• Shell | |