This repository was archived by the owner on Apr 3, 2019. It is now read-only.

Description
I wrote a little script to generate the ast for all of the sample $filter strings from chapter 4.5 of http://www.odata.org/documentation/odata-version-2-0/uri-conventions/#. When running the script I get errors for some of the filters, e.g. $filter=Price add 5 gt 10
odata-parser.js:5341
throw new this.SyntaxError(
^
SyntaxError: Expected "and" or "or" but "g" found.
Have a look at the commented lines of the attached script for all erroneous filters.
Regards Helmut
index.js.txt