rustpython-parser 0.4.0

Python language parser for Python3.
Documentation
---
source: parser/src/context.rs
expression: parse_ast
---
[
    Assign(
        StmtAssign {
            range: 0..26,
            targets: [
                Name(
                    ExprName {
                        range: 0..1,
                        id: Identifier(
                            "x",
                        ),
                        ctx: Store,
                    },
                ),
            ],
            value: SetComp(
                ExprSetComp {
                    range: 4..26,
                    elt: Name(
                        ExprName {
                            range: 5..6,
                            id: Identifier(
                                "y",
                            ),
                            ctx: Load,
                        },
                    ),
                    generators: [
                        Comprehension {
                            range: 7..25,
                            target: Name(
                                ExprName {
                                    range: 11..12,
                                    id: Identifier(
                                        "y",
                                    ),
                                    ctx: Store,
                                },
                            ),
                            iter: Tuple(
                                ExprTuple {
                                    range: 16..25,
                                    elts: [
                                        Constant(
                                            ExprConstant {
                                                range: 17..18,
                                                value: Int(
                                                    1,
                                                ),
                                                kind: None,
                                            },
                                        ),
                                        Constant(
                                            ExprConstant {
                                                range: 20..21,
                                                value: Int(
                                                    2,
                                                ),
                                                kind: None,
                                            },
                                        ),
                                        Constant(
                                            ExprConstant {
                                                range: 23..24,
                                                value: Int(
                                                    3,
                                                ),
                                                kind: None,
                                            },
                                        ),
                                    ],
                                    ctx: Load,
                                },
                            ),
                            ifs: [],
                            is_async: false,
                        },
                    ],
                },
            ),
            type_comment: None,
        },
    ),
]