Skip to main content

Crate oak_vampire

Crate oak_vampire 

Source
Expand description

§🚀 oak-vampire

Crates.io Documentation

Making VAMPIRE processing simple — A high-performance, incremental VAMPIRE parser built on the Oak framework.

§🎯 Project Vision

oak-vampire is dedicated to providing industrial-grade parsing support for the VAMPIRE language. By leveraging Rust’s high-performance characteristics and Oak’s incremental parsing architecture, it can easily handle a variety of application scenarios, from simple script analysis to complex IDE language servers.

§✨ Core Features

  • ⚡ Blazing Fast: Fully utilizes Rust’s performance advantages to achieve sub-millisecond parsing response times.
  • 🔄 Incremental Parsing: Built-in support for partial updates, demonstrating extremely high efficiency when processing large files.
  • 🌳 Structured Output: Provides a clear, easy-to-traverse syntax tree or data structure.
  • 🛡️ Robustness: Features a comprehensive error recovery mechanism, ensuring normal operation even when input is incomplete.
  • 🧩 Easy Integration: Designed with high cohesion and low coupling, allowing for quick integration into existing Rust projects. Vampire support for the Oak language framework.

Re-exports§

pub use crate::ast::VampireRoot;
pub use crate::language::VampireLanguage;
pub use crate::lexer::VampireLexer;
pub use crate::parser::VampireParser;
pub use crate::lsp::highlighter::VampireHighlighter;
pub use crate::lsp::VampireLanguageService;
pub use crate::lsp::formatter::VampireFormatter;
pub use crate::mcp::serve_vampire_mcp;
pub use lexer::token_type::VampireTokenType;
pub use parser::element_type::VampireElementType;

Modules§

ast
AST module.
builder
Builder module.
language
Language configuration module.
lexer
Lexer module.
lsp
LSP module.
mcp
MCP module.
parser
Parser module.

Traits§

ElementType
A trait for types that represent an element’s kind in a syntax tree.
TokenType
A trait for types that represent a token’s kind in a specific language.