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
22#[cfg(feature = "mcp")]
23pub mod mcp;
24pub mod parser;
26
27pub use crate::{builder::DotBuilder, language::DotLanguage, lexer::DotLexer, parser::DotParser};
28
29#[cfg(feature = "oak-highlight")]
31pub use crate::lsp::highlighter::DotHighlighter;
32
33#[cfg(feature = "lsp")]
35pub use crate::lsp::DotLanguageService;
36
37#[cfg(feature = "mcp")]
39pub use crate::mcp::serve_dot_mcp;
40pub use lexer::token_type::DotTokenType;
41pub use parser::element_type::DotElementType;