Skip to content

appears that nested compound actions aren't allowed by the parser #514

Open
@b1conrad

Description

@b1conrad

A simple example which gets a "ParseError: Expected ( [at line 8 col 22]"

ruleset compound_action {
  rule every_in_choose {
    select when compound test_noop
    pre {
      cv = event:attrs{"msg_type"} || "rumor"
    }
    choose cv {
      rumor => every {noop()}
      seen => noop()
    }
  }
}

Nonsensical example distilled from a real case where we need a compound action inside a branch of a choose

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions