Crate oxur_repl

Crate oxur_repl 

Source
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
ReplClient
Stub REPL client for backwards compatibility.
SourceMap
Tracks AST transformations for error reporting
SourcePos
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