grammar:
test = test:"a" "b" ("c" &{return test==="a" || error(`test = ${test}`);})|1..," "|
example:
resulting error: Line 1, column 6: test = b
even though the label test only gets set to a at the beginning
i have tried looking at the generated code:
it seems like you unwrap the loop into something like "c" {...} (" " "c" {...})*
but the second version looks for test in the wrong place (one higher in your stack??)
for now i can use this hack:
test = test:"a" ("" {return test;}) "b" ("c" &{return test==="a" || error(`test = ${test}`);})|1..," "|
but i shouldn't have to do that.
grammar:
example:
resulting error:
Line 1, column 6: test = beven though the label
testonly gets set toaat the beginningi have tried looking at the generated code:
it seems like you unwrap the loop into something like
"c" {...} (" " "c" {...})*but the second version looks for
testin the wrong place (one higher in your stack??)for now i can use this hack:
but i shouldn't have to do that.