1#![doc = include_str!("readme.md")]
2#![feature(new_range_api)]
3#![feature(portable_simd)]
4#![warn(missing_docs)]
5#![doc(html_logo_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
6#![doc(html_favicon_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
7
8pub mod ast;
10pub mod builder;
12
13pub mod language;
15pub mod lexer;
17#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
18pub mod lsp;
19#[cfg(feature = "mcp")]
21pub mod mcp;
22
23pub mod parser;
25
26pub use crate::{ast::RustRoot, builder::RustBuilder, language::RustLanguage, lexer::RustLexer, parser::RustParser};
27pub use lexer::token_type::RustTokenType;
28pub use parser::RustElementType;
29
30#[cfg(feature = "oak-highlight")]
31pub use crate::lsp::highlighter::{Highlighter, RustHighlighter};
32
33#[cfg(feature = "lsp")]
34pub use crate::lsp::RustLanguageService;
35
36#[cfg(feature = "oak-pretty-print")]
37pub use crate::lsp::formatter::RustFormatter;