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.
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.