1#![doc = include_str!("readme.md")]
2#![feature(new_range_api)]
3#![warn(missing_docs)]
4pub mod ast;
8pub mod builder;
10pub mod errors;
12pub mod frontend;
14
15pub mod language;
18pub mod lexer;
20#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
22pub mod lsp;
23#[cfg(feature = "mcp")]
25pub mod mcp;
26
27pub mod parser;
29
30pub use crate::{ast::PythonRoot, builder::PythonBuilder, language::PythonLanguage, lexer::PythonLexer, parser::PythonParser};
31
32#[cfg(feature = "oak-highlight")]
34pub use crate::lsp::highlighter::PythonHighlighter;
35pub use lexer::token_type::PythonTokenType;
36pub use parser::element_type::PythonElementType;