Skip to main content

oak_gsgl/
lib.rs

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
7/// AST module.
8pub mod ast;
9/// Builder module.
10pub mod builder;
11
12/// Highlighter module.
13#[cfg(feature = "lsp")]
14pub use crate::lsp::highlighter;
15/// Type definitions module.
16/// Language configuration module.
17pub mod language;
18/// Lexer module.
19pub mod lexer;
20/// LSP module.
21#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
22pub mod lsp;
23/// MCP module.
24#[cfg(feature = "mcp")]
25pub mod mcp;
26
27/// Parser module.
28pub mod parser;
29/// Syntax module.
30pub use crate::ast::GsglRoot;
31pub use crate::{builder::GsglBuilder, language::GsglLanguage, lexer::GsglLexer, parser::GsglParser};
32
33/// Highlighter implementation.
34#[cfg(feature = "oak-highlight")]
35pub use crate::lsp::highlighter::GsglHighlighter;
36
37/// LSP implementation.
38#[cfg(feature = "lsp")]
39pub use crate::lsp::GsglLanguageService;
40
41/// MCP service implementation.
42#[cfg(feature = "mcp")]
43pub use crate::mcp::serve_gsgl_mcp;
44pub use lexer::token_type::GsglTokenType;
45pub use parser::element_type::GsglElementType;