oak_python/
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")]
5
6pub mod ast;
7pub mod builder;
8#[cfg(feature = "oak-highlight")]
9pub mod highlighter;
10pub mod kind;
11pub mod language;
12pub mod lexer;
13pub mod lsp;
14#[cfg(feature = "mcp")]
15pub mod mcp;
16pub mod parser;
17
18pub use crate::{ast::PythonRoot, builder::PythonBuilder, kind::PythonSyntaxKind, language::PythonLanguage, lexer::PythonLexer, lsp::PythonLanguageService, parser::PythonParser};
19
20#[cfg(feature = "oak-highlight")]
21pub use crate::highlighter::{HighlightKind, Highlighter, PythonHighlighter};
22
23#[cfg(feature = "mcp")]
24pub use crate::mcp::serve_python_mcp;