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

Custom license and LGPL-3.0-only

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.

Dependencies

~13MB
~270K SLoC