rustpython-parser 0.2.0

Parser for python code.
---
source: compiler/parser/src/context.rs
expression: parse_ast
---
[
    Located {
        location: Location {
            row: 1,
            column: 0,
        },
        end_location: Some(
            Location {
                row: 1,
                column: 14,
            },
        ),
        custom: (),
        node: If {
            test: Located {
                location: Location {
                    row: 1,
                    column: 3,
                },
                end_location: Some(
                    Location {
                        row: 1,
                        column: 8,
                    },
                ),
                custom: (),
                node: NamedExpr {
                    target: Located {
                        location: Location {
                            row: 1,
                            column: 3,
                        },
                        end_location: Some(
                            Location {
                                row: 1,
                                column: 4,
                            },
                        ),
                        custom: (),
                        node: Name {
                            id: "x",
                            ctx: Store,
                        },
                    },
                    value: Located {
                        location: Location {
                            row: 1,
                            column: 7,
                        },
                        end_location: Some(
                            Location {
                                row: 1,
                                column: 8,
                            },
                        ),
                        custom: (),
                        node: Constant {
                            value: Int(
                                1,
                            ),
                            kind: None,
                        },
                    },
                },
            },
            body: [
                Located {
                    location: Location {
                        row: 1,
                        column: 10,
                    },
                    end_location: Some(
                        Location {
                            row: 1,
                            column: 14,
                        },
                    ),
                    custom: (),
                    node: Pass,
                },
            ],
            orelse: [],
        },
    },
]