mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-04 02:39:22 +00:00

- 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
39 lines
1.1 KiB
TOML
39 lines
1.1 KiB
TOML
[package]
|
|
name = "rustpython-parser"
|
|
version = "0.2.0"
|
|
description = "Parser for python code."
|
|
authors = ["RustPython Team"]
|
|
build = "build.rs"
|
|
repository = "https://github.com/RustPython/RustPython"
|
|
license = "MIT"
|
|
edition = "2021"
|
|
|
|
[features]
|
|
default = []
|
|
serde = ["dep:serde", "rustpython-parser-core/serde"]
|
|
|
|
[build-dependencies]
|
|
anyhow = { workspace = true }
|
|
lalrpop = { version = "0.20.0", default-features = false, optional = true }
|
|
phf_codegen = "0.11.1"
|
|
tiny-keccak = { version = "2", features = ["sha3"] }
|
|
|
|
[dependencies]
|
|
rustpython-ast = { workspace = true }
|
|
rustpython-parser-core = { workspace = true }
|
|
|
|
itertools = { workspace = true }
|
|
log = { workspace = true }
|
|
num-bigint = { workspace = true }
|
|
num-traits = { workspace = true }
|
|
unicode_names2 = { workspace = true }
|
|
|
|
unic-emoji-char = "0.9.0"
|
|
unic-ucd-ident = "0.9.0"
|
|
lalrpop-util = { version = "0.20.0", default-features = false }
|
|
phf = "0.11.1"
|
|
rustc-hash = "1.1.0"
|
|
serde = { version = "1.0.133", optional = true, default-features = false, features = ["derive"] }
|
|
|
|
[dev-dependencies]
|
|
insta = { workspace = true }
|