noctarius / borabora

borabora is a CBOR (cbor.io) parser supporting graph queries and lazy decoding of stream elements
Apache License 2.0
13 stars 5 forks source link

Add support for simple look-ahead queries with matching rules #9

Open noctarius opened 8 years ago

noctarius commented 8 years ago

Queries with simple look-ahead matching rules like (?(0){'foo'=='bar'}>>1)

=> return element 1 from the list if, and only if, element 0 is a dictionary and the key 'foo' equals 'bar'

something like that