Expand description
Oxur REPL
Provides a Read-Eval-Print-Loop with three-tier execution:
- Tier 1: Calculator mode (interpret simple arithmetic only) - <1ms
- Tier 2: Cached & loaded (execute from already-loaded library) - ~1-5ms
- Tier 3: Just-in-time (compile, cache, and load) - ~50-300ms
Based on ODD-0018: Oxur Remote REPL Protocol Design and ODD-0026 v2.0: Oxur REPL Evaluation Strategy
Modules§
- cache
- Caching infrastructure for compiled artifacts
- compiler
- Compilation pipeline for Oxur REPL
- eval
- executor
- Code execution infrastructure
- metadata
- System metadata captured at startup
- metrics
- Metrics system for REPL observability
- protocol
- server
- Server Layer for REPL
- session
- Session management for REPL
- subprocess
- Subprocess runtime support
- transport
- type_
inference - Type inference for REPL variables
- wrapper
- Rust AST wrapper for REPL scaffolding
Structs§
- NodeId
- Unique identifier for AST nodes across all compilation stages
- Repl
Client - Stub REPL client for backwards compatibility.
- Source
Map - Tracks AST transformations for error reporting
- Source
Pos - Source position in original Oxur code
Enums§
- Error
- Error types for REPL
Functions§
- new_
node_ id - Generate a new unique NodeId
Type Aliases§
- Result
- Result type for REPL operations