Skip to main content

oak_ada/
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/// Type definitions module.
13/// Language configuration module.
14pub mod language;
15/// Lexer module.
16pub mod lexer;
17/// LSP module.
18#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
19pub mod lsp;
20/// MCP module.
21#[cfg(feature = "mcp")]
22pub mod mcp;
23
24/// Parser module.
25pub mod parser;
26
27pub use crate::{ast::AdaRoot, language::AdaLanguage, lexer::AdaLexer, parser::AdaParser};
28
29pub use oak_core::{ElementType, TokenType};
30
31/// Highlighter implementation.
32#[cfg(feature = "oak-highlight")]
33pub use crate::lsp::highlighter::AdaHighlighter;
34
35#[cfg(feature = "lsp")]
36pub use crate::lsp::AdaLanguageService;
37/// LSP implementation.
38#[cfg(feature = "lsp")]
39pub use crate::lsp::formatter::AdaFormatter;
40
41/// MCP service implementation.
42#[cfg(feature = "mcp")]
43pub use crate::mcp::serve_ada_mcp;
44pub use lexer::token_type::AdaTokenType;
45pub use parser::element_type::AdaElementType;