Skip to main content

oak_python/
lib.rs

1#![doc = include_str!("readme.md")]
2#![feature(new_range_api)]
3#![warn(missing_docs)]
4//! Python support for the Oak language framework.
5
6/// AST module.
7pub mod ast;
8/// Builder module.
9pub mod builder;
10/// Error module.
11pub mod errors;
12/// Frontend module.
13pub mod frontend;
14
15/// Kind definition module.
16/// Language configuration module.
17pub mod language;
18/// Lexer module.
19pub mod lexer;
20/// LSP module.
21#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
22pub mod lsp;
23/// MCP module.
24#[cfg(feature = "mcp")]
25pub mod mcp;
26
27/// Parser module.
28pub mod parser;
29
30pub use crate::{ast::PythonRoot, builder::PythonBuilder, language::PythonLanguage, lexer::PythonLexer, parser::PythonParser};
31
32/// Highlighter implementation.
33#[cfg(feature = "oak-highlight")]
34pub use crate::lsp::highlighter::PythonHighlighter;
35pub use lexer::token_type::PythonTokenType;
36pub use parser::element_type::PythonElementType;