Skip to main content

oak_ada/
lib.rs

1#![doc = include_str!("readme.md")]
2#![doc(html_logo_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
3#![doc(html_favicon_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
4#![feature(new_range_api)]
5#![allow(missing_docs)]
6
7extern crate oak_core;
8extern crate serde;
9
10/// AST 模块
11pub mod ast;
12mod builder;
13mod formatter;
14/// 高亮模块
15pub mod highlighter;
16mod language;
17/// 词法分析器模块
18pub mod lexer;
19/// LSP 模块
20pub mod lsp;
21pub mod mcp;
22/// 语法分析器模块
23pub mod parser;
24
25// 重新导出主要类型
26pub use crate::{ast::AdaRoot, builder::AdaBuilder, formatter::AdaFormatter, highlighter::AdaHighlighter, language::AdaLanguage, lexer::AdaLexer, lsp::AdaLanguageService, parser::AdaParser};
27
28pub use crate::mcp::serve_ada_mcp;