mattbishop / sql-jsonpath-js

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

BNF based parser #20

Closed mattbishop closed 2 years ago

mattbishop commented 2 years ago

I went and bought the SQL JSONPATH chapter of the SQL 2016 spec, and it had a complete set of BNF declarations. I followed them as closely as Chevrotain will allow and made a couple of optimizations.

This change is a rewrite of the parser and some of the tokens. The new tests are against the CST output, not the visitor output. I have not touched the visitor.

mattbishop commented 2 years ago

Fixes parsing #5, #9, #11, #12, #18, #19