Skip to main content

oak_matlab/
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//! Matlab support for the Oak language framework.
7
8pub mod ast;
9pub mod builder;
10
11pub mod language;
12pub mod lexer;
13#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
14pub mod lsp;
15/// MCP module.
16#[cfg(feature = "mcp")]
17pub mod mcp;
18
19pub mod parser;
20
21pub use crate::{
22    language::MatlabLanguage,
23    lexer::{MatlabLexer, token_type::MatlabTokenType},
24    parser::{MatlabParser, element_type::MatlabElementType},
25};
26
27#[cfg(feature = "oak-highlight")]
28pub use crate::lsp::highlighter::MatlabHighlighter;
29
30#[cfg(feature = "lsp")]
31pub use crate::lsp::MatlabLanguageService;
32
33#[cfg(feature = "mcp")]
34pub use crate::mcp::serve_matlab_mcp;