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;
10pub mod builder;
12
13pub 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::{ast::SmalltalkRoot, language::SmalltalkLanguage, lexer::SmalltalkLexer, parser::SmalltalkParser};
28
29pub use oak_core::{ElementType, TokenType};
30
31#[cfg(feature = "oak-highlight")]
33pub use crate::lsp::highlighter::SmalltalkHighlighter;
34
35#[cfg(feature = "lsp")]
36pub use crate::lsp::SmalltalkLanguageService;
37#[cfg(feature = "lsp")]
39pub use crate::lsp::formatter::SmalltalkFormatter;
40
41#[cfg(feature = "mcp")]
43pub use crate::mcp::serve_smalltalk_mcp;
44pub use lexer::token_type::SmalltalkTokenType;
45pub use parser::element_type::SmalltalkElementType;