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;
8pub 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#[cfg(feature = "mcp")]
17pub mod mcp;
18
19pub mod parser;
21
22pub use crate::{
23 language::MatlabLanguage,
24 lexer::{MatlabLexer, token_type::MatlabTokenType},
25 parser::{MatlabParser, element_type::MatlabElementType},
26};
27
28#[cfg(feature = "oak-highlight")]
29pub use crate::lsp::highlighter::MatlabHighlighter;
30
31#[cfg(feature = "lsp")]
32pub use crate::lsp::MatlabLanguageService;
33
34#[cfg(feature = "mcp")]
35pub use crate::mcp::serve_matlab_mcp;