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//! Ocaml support for the Oak language framework.
7
8pub mod ast;
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
18pub mod parser;
19
20pub use builder::OCamlBuilder;
21pub use language::OCamlLanguage;
22pub use lexer::OCamlLexer;
23pub use parser::OCamlParser;
24
25/// Highlighter implementation.
26#[cfg(feature = "lsp")]
27pub use crate::lsp::highlighter::{HighlightKind, Highlighter, OCamlHighlighter};
28
29/// LSP implementation.
30#[cfg(feature = "lsp")]
31pub use crate::lsp::OCamlLanguageService;
32
33/// MCP service implementation.
34#[cfg(feature = "mcp")]
35pub use crate::mcp::serve_ocaml_mcp;
36pub use lexer::token_type::OCamlTokenType;
37pub use parser::element_type::OCamlElementType;