Skip to main content

oak_go/
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/// Language configuration module.
13pub mod language;
14/// Lexer module.
15pub mod lexer;
16/// LSP module.
17#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
18pub mod lsp;
19/// MCP module.
20#[cfg(feature = "mcp")]
21pub mod mcp;
22
23/// Parser module.
24pub mod parser;
25
26pub use crate::ast::GoRoot;
27pub use builder::GoBuilder;
28pub use language::GoLanguage;
29pub use lexer::GoLexer;
30pub use parser::GoParser;
31
32/// Highlighter implementation.
33#[cfg(feature = "oak-highlight")]
34pub use crate::lsp::highlighter::GoHighlighter;
35
36/// LSP implementation.
37#[cfg(feature = "lsp")]
38pub use crate::lsp::GoLanguageService;
39#[cfg(feature = "oak-pretty-print")]
40pub use crate::lsp::formatter::GoFormatter;
41
42/// MCP service implementation.
43#[cfg(feature = "mcp")]
44pub use crate::mcp::serve_go_mcp;
45pub use lexer::token_type::GoTokenType;
46pub use parser::element_type::GoElementType;