How karlll/krisp works
Main Components
a) REPL Layer (Top Level)
• REPL module (from repl/src/.../Repl.kt)
• This is the user interface component
b) Core Interpreter Layer (Middle Layer)
Following key components:
• TokenReader (Lexical Analysis)
• Evaluator (Evaluation Engine)
• Environment (Scope Management)
• Printer (Output Formatting)
• Types System
• Namespace Management
c) Runtime Layer (Bottom Layer)
• JVM Runtime
• Standard Library Functions
Component Relationships
• User Input → REPL
• REPL → TokenReader
• TokenReader → Evaluator
• Evaluator ↔ Environment
• Evaluator → Printer
• Printer → REPL Output
b) Dependency Relationships:
• How the Environment interacts with Namespaces
• How the Types system is used across components
• Macro expansion flow in the evaluation process
Specific Implementation Details
Architectural elements:
• Separation between the core interpreter (core/) and the REPL interface (repl/)
• Macro system's integration
• Where special forms are handled
• Relationship with the testing framework
• REPL |
• ↓
• Token Reader |
• Evaluator |
• Environment |
• Printer |
• ↓
• JVM Runtime |