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
12#[cfg(feature = "lsp")]
14pub use crate::lsp::highlighter;
15pub 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;
29pub use crate::ast::GsglRoot;
31pub use crate::{builder::GsglBuilder, language::GsglLanguage, lexer::GsglLexer, parser::GsglParser};
32
33#[cfg(feature = "oak-highlight")]
35pub use crate::lsp::highlighter::GsglHighlighter;
36
37#[cfg(feature = "lsp")]
39pub use crate::lsp::GsglLanguageService;
40
41#[cfg(feature = "mcp")]
43pub use crate::mcp::serve_gsgl_mcp;
44pub use lexer::token_type::GsglTokenType;
45pub use parser::element_type::GsglElementType;