Skip to main content

oak_wolfram/
lib.rs

1#![doc = include_str!("readme.md")]
2#![feature(new_range_api)]
3#![doc(html_logo_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
4#![doc(html_favicon_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
5#![warn(missing_docs)]
6
7pub mod ast;
8mod builder;
9pub mod language;
10pub mod lexer;
11#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
12pub mod lsp;
13/// MCP module.
14#[cfg(feature = "mcp")]
15pub mod mcp;
16pub mod parser;
17
18pub use crate::{builder::WolframBuilder, language::WolframLanguage, lexer::WolframLexer, parser::WolframParser};
19
20/// Highlighter implementation.
21#[cfg(feature = "oak-highlight")]
22pub use crate::lsp::highlighter::WolframHighlighter;
23
24/// LSP implementation.
25#[cfg(feature = "lsp")]
26pub use crate::lsp::WolframLanguageService;
27
28/// MCP service implementation.
29#[cfg(feature = "mcp")]
30pub use crate::mcp::serve_wolfram_mcp;
31pub use lexer::token_type::WolframTokenType;
32pub use oak_core::{ElementType, TokenType};
33pub use parser::element_type::WolframElementType;