3 releases
| 0.1.2 | May 24, 2026 |
|---|---|
| 0.1.1 | Nov 13, 2025 |
| 0.1.0 | Aug 6, 2023 |
#830 in Programming languages
Used in alephc
15KB
275 lines
ale_python_parser
Parses Python source code into an AlephTree.
Built on top of rustpython-parser.
Installation
[dependencies]
ale_python_parser = "0.1"
Usage
let ast = ale_python_parser::python_parse(source_code);
Example
Input:
def add(a, b):
return a + b
Produces an AlephTree::LetRec with two arguments and an Add body.
Related
aleph-syntax-tree— AST definitionalephc— uses this parser with--features python_parse
Dependencies
~13MB
~270K SLoC