[up] [log] [?]
[first]  [entry] [exit]  [last]

(meg/match ~{:close (capture (backmatch :delim)) :main (sequence :thing -1) :open (capture (sequence "[" (some "_") "]") :delim) :thing (choice (unref (sequence :open :thing :close)) (capture (any (if-not "[" 1))))}
           "[__][_]a[_][__]")

captures and tags
captures: @[]

current frame
status: exiting frame 9 with value: 3
peg: (some "_")
text: [__][_]a[_][__]
index: 1 advanced to: 3
matched: __

frames call stack
9 (some "_")
7 (sequence "[" (some "_") "]")
6 (capture (sequence "[" (some "_") "]") :delim)
5 :open
4 (sequence :open :thing :close)
3 (unref (sequence :open :thing :close))
2 (choice (unref (sequence :open :thing :close)) (capture (any (if-not "[" 1))))
1 :thing
0 (sequence :thing -1)