- Split parser core and compiler core. Fix #14 - AST int type to `u32` - Updated asdl_rs.py and update_asdl.sh fix #6 - Use `ruff_python_ast::SourceLocation` for Python source location. Deleted our own Location. - Renamed ast::Located to ast::Attributed to distinguish terms for TextSize and SourceLocation - `ast::<Node>`s for TextSize located ast. `ast::located::<Node>` for Python source located ast. - And also strictly renaming `located` to refer only python location related interfaces. - `SourceLocator` to convert locations. - New `source-code` features of to disable python locations when unnecessary. - Also including fully merging https://github.com/astral-sh/RustPython/pull/4 closes #9
16 lines
406 B
Rust
16 lines
406 B
Rust
#![doc(html_logo_url = "https://raw.githubusercontent.com/RustPython/RustPython/main/logo.png")]
|
|
#![doc(html_root_url = "https://docs.rs/rustpython-parser-core/")]
|
|
|
|
mod error;
|
|
mod format;
|
|
pub mod mode;
|
|
#[cfg(feature = "source-code")]
|
|
pub mod source_code;
|
|
|
|
pub use error::BaseError;
|
|
pub use format::ConversionFlag;
|
|
pub use mode::Mode;
|
|
|
|
// re-export our public interface
|
|
pub use ruff_text_size as text_size;
|