1#![doc = include_str!("readme.md")]
2#![feature(new_range_api)]
3#![warn(missing_docs)]
4#![doc(html_logo_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
5#![doc(html_favicon_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
6pub mod ast;
10pub mod builder;
12
13pub mod language;
16pub mod lexer;
18#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
20pub mod lsp;
21#[cfg(feature = "mcp")]
23pub mod mcp;
24
25pub mod parser;
27
28pub use crate::{
29 ast::LeanRoot,
30 builder::LeanBuilder,
31 language::LeanLanguage,
32 lexer::{LeanLexer, token_type::LeanTokenType},
33 parser::{LeanParser, element_type::LeanElementType},
34};
35
36#[cfg(feature = "oak-highlight")]
38pub use crate::lsp::highlighter::LeanHighlighter;
39
40#[cfg(feature = "lsp")]
42pub use crate::lsp::LeanLanguageService;
43
44#[cfg(feature = "mcp")]
46pub use crate::mcp::serve_lean_mcp;