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