---
source: ustar-test-utils/src/snapshot_utils.rs
expression: value
---
uSTAR Parse Debugger


=== Attempting to find last parseable position ===

   ✓ Found successful parse at byte position: 90

=== Successful Parse Tree ===

    1 | 0 | star_file (0-90) lines 1-5                 "data_test\n\n_valid_item 123\n\n# ...or testing the parser debugger"
    1 | 1 |   data_block (0-26) lines 1-3              "data_test\n\n_valid_item 123"
    1 | 2 |     data_heading (0-9) lines 1-1           "data_test"
    3 | 2 |     data (11-26) lines 3-3                 "_valid_item 123"
    3 | 3 |       data_name (11-22) lines 3-3          "_valid_item"
    3 | 3 |       non_quoted_string (23-26) lines 3-3  "123"
    5 | 1 |   EOI (90-90) lines 5-5                    ""

=== Unparsed Content ===

    Showing unparsed content (2 lines):

     6: 
     7: _incomplete_loop


=== Error Message ===

  [31m×[0m Expected double_quote_string, single_quote_string, frame_code or semi_colon_string
    ╭─[7:1]
 [2m 1[0m │ data_test
 [2m 2[0m │ 
 [2m 3[0m │ _valid_item 123
 [2m 4[0m │ 
 [2m 5[0m │ # This file has invalid syntax for testing the parser debugger
 [2m 6[0m │ _incomplete_loop
 [2m 7[0m │ loop_
    · [35;1m▲[0m
    · [35;1m╰── [35;1mError occurred here[0m[0m
 [2m 8[0m │     _atom_site_label
 [2m 9[0m │     _atom_site_x
 [2m10[0m │     # Missing stop_ - this will cause a parse error
 [2m11[0m │ _another_item "unclosed string
    ╰────


✗ Parse failed

Last parsed position: 90 bytes
Bytes parsed: 90 bytes
Bytes remaining: 144 bytes
Lines parsed: 5 lines
Lines remaining: 6 lines

File: tests/test_data/invalid_syntax.star
Size: 234 bytes
