Skip to main content

oak_purescript/
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//! Purescript 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;
15pub mod parser;
16
17pub use crate::{ast::PurescriptRoot, builder::PurescriptBuilder, language::PurescriptLanguage, lexer::PurescriptLexer, parser::PurescriptParser};
18
19#[cfg(feature = "oak-highlight")]
20pub use crate::lsp::highlighter::{HighlightKind, Highlighter, PurescriptHighlighter};
21
22/// MCP service implementation.
23// #[cfg(feature = "mcp")]
24// pub mod mcp;
25// #[cfg(feature = "mcp")]
26// pub use crate::mcp::serve_purescript_mcp;
27pub use parser::element_type::PurescriptElementType;