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)]
6pub 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::PascalRoot, builder::PascalBuilder, language::PascalLanguage, lexer::PascalLexer, parser::PascalParser};
28
29#[cfg(feature = "lsp")]
30#[cfg(feature = "oak-highlight")]
31pub use crate::lsp::highlighter::PascalHighlighter;
32
33#[cfg(feature = "lsp")]
34pub use crate::lsp::PascalLanguageService;
35
36#[cfg(feature = "mcp")]
37pub use crate::mcp::serve_pascal_mcp;
38pub use lexer::token_type::PascalTokenType;
39pub use parser::element_type::PascalElementType;