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

Description
Consider following queries:
$filter=name eq 'John' or name lt 'Doe' and address gt 'x1234'
$filter=(name eq 'John' or name lt 'Doe') and name gt 'x1234'
AST for these queries is the same.
{
"type": "or",
"left": {
"type": "eq",
"left": {
"type": "property",
"name": "name"
},
"right": {
"type": "literal",
"value": "John"
}
},
"right": {
"type": "and",
"left": {
"type": "lt",
"left": {
"type": "property",
"name": "name"
},
"right": {
"type": "literal",
"value": "Doe"
}
},
"right": {
"type": "gt",
"left": {
"type": "property",
"name": "address"
},
"right": {
"type": "literal",
"value": "x1234"
}
}
}
}