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)]
6pub 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#[cfg(feature = "mcp")]
17pub mod mcp;
18
19pub mod parser;
21
22pub use crate::{ast::PowerShellRoot, builder::PowerShellBuilder, language::PowerShellLanguage, lexer::token_type::PowerShellTokenType, parser::PowerShellParser};
23
24#[cfg(feature = "lsp")]
25pub use crate::lsp::highlighter::{HighlightKind, Highlighter, PowerShellHighlighter};
26
27#[cfg(feature = "lsp")]
28pub use crate::lsp::PowerShellLanguageService;
29
30#[cfg(feature = "mcp")]
31pub use crate::mcp::serve_powershell_mcp;
32pub use parser::element_type::PowerShellElementType;