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;
18pub mod lexer;
20#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
22pub mod lsp;
23#[cfg(feature = "mcp")]
25pub mod mcp;
26
27pub mod parser;
29
30pub use crate::{ast::LuaRoot, builder::LuaBuilder, language::LuaLanguage, lexer::LuaLexer, parser::LuaParser};
31
32#[cfg(feature = "oak-highlight")]
34pub use crate::lsp::highlighter::LuaHighlighter;
35
36#[cfg(feature = "lsp")]
38pub use crate::lsp::LuaLanguageService;
39#[cfg(feature = "mcp")]
44pub use crate::mcp::serve_lua_mcp;
45pub use lexer::token_type::LuaTokenType;
46pub use parser::element_type::LuaElementType;