Build a small feature-flag library from a natural-language specification.
Build a small feature-flag library from a natural-language specification.: a task in SWEFoundary-test: SWEFoundry Test (Harbor dataset). A flag contains a required boolean default and optional rules . Each rule contains integer priority , boolean value , and a list named all . Conditions inside…
The task
A flag contains a required boolean `default` and optional `rules`. Each rule contains integer `priority`, boolean `value`, and a list named `all`. Conditions inside `all` have `key`, `op`, and `value`.
Part of lhpku20010120/SWEFoundary-test.