Skip to main content

oak_prolog/
lib.rs

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