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")]
6
7pub mod ast;
9pub mod builder;
11
12pub mod language;
15pub mod lexer;
17#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
19pub mod lsp;
20#[cfg(feature = "mcp")]
22pub mod mcp;
23
24pub mod parser;
26
27pub use crate::{
28 ast::LeanRoot,
29 builder::LeanBuilder,
30 language::LeanLanguage,
31 lexer::{LeanLexer, token_type::LeanTokenType},
32 parser::{LeanParser, element_type::LeanElementType},
33};
34
35#[cfg(feature = "oak-highlight")]
37pub use crate::lsp::highlighter::LeanHighlighter;
38
39#[cfg(feature = "lsp")]
41pub use crate::lsp::LeanLanguageService;
42
43#[cfg(feature = "mcp")]
45pub use crate::mcp::serve_lean_mcp;