[up] [log] [?]
[first] [prev] [entry] [exit] [next] [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: @["[__]" "[_]" "a" "[_]"]
tagged-captures:
tags: @[:delim :delim nil nil]
values: @["[__]" "[_]" "a" "[_]"]
current frame
status: exiting frame 42 with value: 11
peg: (capture (backmatch :delim))
text: [__][_]a[_][__]
index: 8 advanced to: 11
matched: [_]
frames call stack
42 (capture (backmatch :delim))
41 :close
17 (sequence :open :thing :close)
16 (unref (sequence :open :thing :close))
15 (choice (unref (sequence :open :thing :close)) (capture (any (if-not "[" 1))))
14 :thing
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)