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