9 releases
Uses new Rust 2024
| new 0.0.11 | Mar 29, 2026 |
|---|---|
| 0.0.10 | Mar 24, 2026 |
| 0.0.4 | Feb 18, 2026 |
#896 in Text editors
350KB
5.5K
SLoC
🚀 oak-repl
Interactive REPL Framework for Oak Languages — A terminal-based Read-Eval-Print Loop framework with multi-line support and real-time syntax highlighting.
🎯 Why oak-repl?
REPLs are essential for interactive development, experimentation, and learning. oak-repl provides a complete, terminal-based REPL framework that integrates deeply with Oak language features.
✨ Key Features
- 🖥️ Terminal Integration — Cross-platform terminal handling with raw mode support
- 📝 Multi-Line Input — Automatic detection of incomplete statements
- 🎨 Syntax Highlighting — Real-time highlighting via
oak-highlightintegration - ⌨️ Rich Editing — Cursor movement, backspace, and auto-indentation
- 🔌 Customizable Handlers —
ReplHandlertrait for language-specific behavior - 🛡️ Error Recovery — Graceful handling with continuation support
🏗️ Architecture
ReplHandler— Trait for implementing language-specific REPL behaviorOakRepl— Main REPL engine managing terminal interactionLineBuffer— Multi-line text input with cursor positioning
🔗 Ecosystem Integration
Integrates with oak-highlight for syntax highlighting and any language parser implementing ReplHandler.
📖 Documentation
For usage examples and API details, see the API documentation.
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Dependencies
~10–17MB
~258K SLoC