How rycont/dalbit-yaksok works
Main Components Identification
The project is a programming language implementation with these key components:
a) Core Runtime Engine
• Parser/Lexer (core/prepare/)
• Executor (core/executer/)
• Node System (core/node/)
• Value System (core/value/)
• Error Handling (core/error/)
b) Integration Components
• Monaco Language Provider (IDE support)
• QuickJS Bridge (JavaScript translation)
• Documentation System
┌─ User Interface Layer ─────────────────────┐
• Monaco Editor Integration │
• Web Documentation │
• ┬───────────────────────┘
• ↓
┌─ Language Processing Layer ────────────────┐
• ┌─────────┐ ┌──────────┐ ┌────────────┐ │
• Lexer │→ │ Parser │→ │ AST Nodes │ │
• ┘ └──────────┘ └────────────┘ │
• ┬───────────────────────┘
• ↓
┌─ Execution Layer ──────────────────────────┐
• ┌─────────┐ ┌──────────┐ ┌────────────┐ │
• Executor │← │ Runtime │← │ Value │ │
• Scope │ │ System │ │
• ┘ └──────────┘ └────────────┘ │
• ┬───────────────────────┘
• ↓
┌─ Integration Layer ────────────────────────┐
• QuickJS Bridge │
• FFI (Foreign Function Interface) │
• ┘
Important Relationships to Highlight
a) Core Processing Flow:
• Text → tokens → AST → execution pipeline
• Error handling paths across all stages
b) Integration Points:
• Monaco Editor ↔ Language Server Protocol
• QuickJS Bridge ↔ JavaScript Runtime
• FFI System ↔ External Functions