oak_php/
lib.rs

1#![feature(new_range_api)]
2#![doc = include_str!("readme.md")]
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")]
5pub mod ast;
6pub mod builder;
7pub mod highlighter;
8pub mod kind;
9pub mod language;
10pub mod lexer;
11pub mod lsp;
12#[cfg(feature = "mcp")]
13pub mod mcp;
14pub mod parser;
15
16pub use crate::{
17    ast::PhpRoot,
18    builder::PhpBuilder,
19    highlighter::{HighlightKind, Highlighter, PhpHighlighter},
20    kind::PhpSyntaxKind,
21    language::PhpLanguage,
22    lsp::PhpLanguageService,
23    parser::PhpParser,
24};
25
26#[cfg(feature = "mcp")]
27pub use crate::mcp::serve_php_mcp;