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;
12pub mod language;
15pub mod lexer;
17#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
19pub mod lsp;
20pub mod parser;
22
23pub use crate::{ast::DRoot, builder::DBuilder, language::DLanguage, lexer::DLexer, parser::DParser};
28
29#[cfg(feature = "oak-highlight")]
31pub use crate::lsp::highlighter::DHighlighter;
32
33#[cfg(feature = "lsp")]
34pub use crate::lsp::DLanguageService;
35#[cfg(feature = "lsp")]
37pub use crate::lsp::formatter::DFormatter;
38
39pub use lexer::token_type::DTokenType;
43pub use parser::element_type::DElementType;