Skip to main content

oak_ocaml/
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
7pub mod ast;
8/// Builder module for OCaml.
9pub mod builder;
10pub mod language;
11pub mod lexer;
12#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
13pub mod lsp;
14/// MCP module.
15#[cfg(feature = "mcp")]
16pub mod mcp;
17
18/// Parser module for OCaml.
19pub mod parser;
20
21pub use builder::OCamlBuilder;
22pub use language::OCamlLanguage;
23pub use lexer::OCamlLexer;
24pub use parser::OCamlParser;
25
26/// Highlighter implementation.
27#[cfg(feature = "lsp")]
28pub use crate::lsp::highlighter::{HighlightKind, Highlighter, OCamlHighlighter};
29
30/// LSP implementation.
31#[cfg(feature = "lsp")]
32pub use crate::lsp::OCamlLanguageService;
33
34/// MCP service implementation.
35#[cfg(feature = "mcp")]
36pub use crate::mcp::serve_ocaml_mcp;
37pub use lexer::token_type::OCamlTokenType;
38pub use parser::element_type::OCamlElementType;