mattbishop / sql-jsonpath-js

JS implementation of the SQL/JSONPath dialect, from SQL2016.
MIT License
0 stars 0 forks source link

Renamed 'booleanOperator' to 'conditionalOperator' as that's what they are used for #16

Closed mattbishop closed 2 years ago

mattbishop commented 2 years ago

Simplified operator value extraction to use combined regex pattern and single if statement for '<>' case.

mattbishop commented 2 years ago

I had a look at the calculator example and it looks like it runs the math during parse time rather than creating a "CST". In this case, both conditionals and arithmetic operators will be emitted into a JS function so they don't need to be separately interpreted at parse time.