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
7pub mod ast;
8pub mod builder;
9
10pub mod language;
11pub mod lexer;
12#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
13pub mod lsp;
14pub mod parser;
15
16pub use crate::{ast::PurescriptRoot, builder::PurescriptBuilder, language::PurescriptLanguage, lexer::PurescriptLexer, parser::PurescriptParser};
17
18#[cfg(feature = "oak-highlight")]
19pub use crate::lsp::highlighter::PurescriptHighlighter;
20
21/// MCP service implementation.
22// #[cfg(feature = "mcp")]
23// pub mod mcp;
24// #[cfg(feature = "mcp")]
25// pub use crate::mcp::serve_purescript_mcp;
26/// Re-export of parser types.
27pub use parser::element_type::PurescriptElementType;