Skip to content

Commit

Permalink
support '-myAtt' as an arithmetic expression
Browse files Browse the repository at this point in the history
closes #709

For discussion: I have not changed the JSON Schema, i.e. one would still have to write `{ "op": "-", "args": [ 0, { "property": "myAtt" }] }`. The alternative would be to also allow only one argument for "-", but would make the schema more complex and/or less strict in validation.
  • Loading branch information
cportele committed Jul 4, 2022
1 parent f617498 commit a637082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cql2/standard/schema/cql2.bnf
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ arithmeticTerm = arithmeticTerm asterisk powerTerm
powerTerm = arithmeticFactor caret powerTerm
| arithmeticFactor;
arithmeticFactor = leftParen arithmeticExpression rightParen
| arithmeticOperand;
| [ minusSign ] arithmeticOperand;
arithmeticOperand = numericLiteral
| propertyName
| function;
Expand Down

0 comments on commit a637082

Please sign in to comment.