xee-xpath-ast 0.1.4

XPath parser and AST implementation
Documentation
---
source: xee-xpath/src/ast/parse_ast.rs
expression: "parse_expr_single(\"1 to 2\")"
---
Spanned {
    value: Binary(
        BinaryExpr {
            operator: Range,
            left: PathExpr {
                steps: [
                    Spanned {
                        value: PrimaryExpr(
                            Spanned {
                                value: Literal(
                                    Integer(
                                        "1",
                                    ),
                                ),
                                span: SourceSpan {
                                    offset: SourceOffset(
                                        0,
                                    ),
                                    length: SourceOffset(
                                        1,
                                    ),
                                },
                            },
                        ),
                        span: SourceSpan {
                            offset: SourceOffset(
                                0,
                            ),
                            length: SourceOffset(
                                1,
                            ),
                        },
                    },
                ],
            },
            right: PathExpr {
                steps: [
                    Spanned {
                        value: PrimaryExpr(
                            Spanned {
                                value: Literal(
                                    Integer(
                                        "2",
                                    ),
                                ),
                                span: SourceSpan {
                                    offset: SourceOffset(
                                        5,
                                    ),
                                    length: SourceOffset(
                                        1,
                                    ),
                                },
                            },
                        ),
                        span: SourceSpan {
                            offset: SourceOffset(
                                5,
                            ),
                            length: SourceOffset(
                                1,
                            ),
                        },
                    },
                ],
            },
        },
    ),
    span: SourceSpan {
        offset: SourceOffset(
            0,
        ),
        length: SourceOffset(
            6,
        ),
    },
}