[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: entered frame 1
peg: :thing
text: [__][_]a[_][__]
index: 0

frames call stack
1 :thing
0 (sequence :thing -1)