Skip to main content

oak_solidity/
lib.rs

1#![doc = include_str!("readme.md")]
2#![feature(new_range_api)]
3#![doc(html_logo_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
4#![doc(html_favicon_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
5#![warn(missing_docs)]
6//! Solidity support for the Oak language framework.
7
8// pub mod ast;
9mod builder;
10
11pub mod language;
12pub mod lexer;
13pub mod parser;
14//
15
16#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
17pub mod lsp;
18/// MCP module.
19#[cfg(feature = "mcp")]
20pub mod mcp;
21
22#[cfg(feature = "lsp")]
23pub use crate::lsp::SolidityLanguageService;
24pub use crate::{builder::SolidityBuilder, language::SolidityLanguage, lexer::SolidityLexer, parser::SolidityParser};
25
26#[cfg(feature = "oak-highlight")]
27pub use crate::lsp::highlighter::SolidityHighlighter;
28#[cfg(feature = "mcp")]
29pub use crate::mcp::serve_solidity_mcp;
30pub use lexer::token_type::SolidityTokenType;
31pub use parser::element_type::SolidityElementType;