oak-repl 0.0.9

Custom-built REPL infrastructure for Oak languages
Documentation

🚀 oak-repl

Crates.io Documentation

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-highlight integration
  • ⌨️ Rich Editing — Cursor movement, backspace, and auto-indentation
  • 🔌 Customizable HandlersReplHandler trait for language-specific behavior
  • 🛡️ Error Recovery — Graceful handling with continuation support

🏗️ Architecture

  • ReplHandler — Trait for implementing language-specific REPL behavior
  • OakRepl — Main REPL engine managing terminal interaction
  • LineBuffer — 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.