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/nested.hrx
---
Archive {
    start: 0,
    end: 363,
    entries: [
        Entry {
            start: 0,
            end: 193,
            comment: None,
            body: File(
                File {
                    start: 0,
                    end: 193,
                    body: Some(
                        Body {
                            start: 16,
                            end: 193,
                            source: "<=====> nested-file1.hrx\nThis is a HRX file nested within a HRX file.\n\n<=====> nested-file2.hrx\nYou can tell it's not part of the outer file because the boundaries are longer.\n\n",
                        },
                    ),
                    path: Path {
                        start: 6,
                        end: 15,
                        source: "file1.hrx",
                    },
                },
            ),
        },
        Entry {
            start: 193,
            end: 363,
            comment: None,
            body: File(
                File {
                    start: 193,
                    end: 363,
                    body: Some(
                        Body {
                            start: 209,
                            end: 363,
                            source: "<=> nested-file1.hrx\nInner files can also contain shorter boundaries...\n\n<=> nested-file2.hrx\n...as long as they don't contain the outer file's boundary.\n",
                        },
                    ),
                    path: Path {
                        start: 199,
                        end: 208,
                        source: "file2.hrx",
                    },
                },
            ),
        },
    ],
    comment: None,
}