pico-engine icon indicating copy to clipboard operation
pico-engine copied to clipboard

Compiler should make regular expression binding in select clause available to foreach clause

Open b1conrad opened this issue 4 years ago • 0 comments

Currently a rule like this one

  rule test_foreach {
    select when foreach content
      content re#(.+)# setting(content)
    foreach content.split(":") setting(string)
    send_directive("content",{"substring":string})
  }

sees the name content bound to the value null in the foreach clause

Matthew says, "that looks like a compiler bug."

b1conrad avatar Feb 22 '21 20:02 b1conrad