timbray / quamina

Home of Quamina, a fast pattern-matching library in Go
Apache License 2.0
373 stars 18 forks source link

pat: Add full suite of numeric expressions #324

Open timbray opened 3 weeks ago

timbray commented 3 weeks ago

Issue #27 is just arranging that pattern

{"x": [ 35 ]}

Will match both of the following:

{"x": 35.0}
{"x": 3.5e1}

This new issue calls for the full suite of arithmetic expressions supported by event-ruler, for example:

{"x": [ { "numeric": [ ">", 0, "<=", 5 ] } ] }