hrx-parser 0.1.1

A hrx parser
Documentation
---
source: tests/test.rs
assertion_line: 13
expression: "format!(\"{:#?}\", parse(& source).unwrap())"
input_file: tests/ok/comments.hrx
---
Archive {
    start: 0,
    end: 154,
    entries: [
        Entry {
            start: 0,
            end: 72,
            comment: Some(
                Comment {
                    start: 0,
                    end: 25,
                    source: "<===>\nThis is a comment.\n",
                    boundary: Boundary {
                        start: 0,
                        end: 5,
                    },
                    body: Body {
                        start: 6,
                        end: 25,
                        source: "This is a comment.\n",
                    },
                },
            ),
            body: File(
                File {
                    start: 0,
                    end: 72,
                    body: Some(
                        Body {
                            start: 37,
                            end: 72,
                            source: "This is the contents of the file.\n\n",
                        },
                    ),
                    path: Path {
                        start: 31,
                        end: 36,
                        source: "file1",
                    },
                },
            ),
        },
        Entry {
            start: 72,
            end: 154,
            comment: Some(
                Comment {
                    start: 72,
                    end: 103,
                    source: "<===>\nThis is another comment.\n",
                    boundary: Boundary {
                        start: 72,
                        end: 77,
                    },
                    body: Body {
                        start: 78,
                        end: 103,
                        source: "This is another comment.\n",
                    },
                },
            ),
            body: File(
                File {
                    start: 72,
                    end: 154,
                    body: Some(
                        Body {
                            start: 115,
                            end: 154,
                            source: "This is the contents of another file.\n\n",
                        },
                    ),
                    path: Path {
                        start: 109,
                        end: 114,
                        source: "file2",
                    },
                },
            ),
        },
    ],
    comment: None,
}