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;
9pub mod builder;
11pub mod language;
14pub mod lexer;
16#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
18pub mod lsp;
19pub mod parser;
21
22pub use crate::{ast::DRoot, builder::DBuilder, language::DLanguage, lexer::DLexer, parser::DParser};
27
28#[cfg(feature = "oak-highlight")]
30pub use crate::lsp::highlighter::DHighlighter;
31
32#[cfg(feature = "lsp")]
33pub use crate::lsp::DLanguageService;
34#[cfg(feature = "lsp")]
36pub use crate::lsp::formatter::DFormatter;
37
38pub use lexer::token_type::DTokenType;
42pub use parser::element_type::DElementType;