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;
11
12pub 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 language::JLanguage;
28pub use lexer::{JLexer, JTokenType};
29pub use parser::{JElementType, JParser};
30
31pub use oak_core::{ElementType, Language, TokenType};
32
33#[cfg(feature = "oak-highlight")]
35pub use crate::lsp::highlighter::JHighlighter;
36
37#[cfg(feature = "lsp")]
38pub use crate::lsp::JLanguageService;
39#[cfg(feature = "lsp")]
41pub use crate::lsp::formatter::JFormatter;
42
43#[cfg(feature = "mcp")]
45pub use crate::mcp::serve_j_mcp;