couchbaselabs / gojsonsm

Go implementation of my JSONSM algorithm.
9 stars 7 forks source link

Matcher to support simple arithmetic #73

Closed nelio2k closed 5 years ago

nelio2k commented 5 years ago

Since we currently support various math functions, it would make sense to add support to simple math arithmetic operations, as these are supported by N1QL. https://docs.couchbase.com/server/6.0/n1ql/n1ql-language-reference/arithmetic.html

These (+ - / * % -) would translate nicely into functions part of the match tree.