Commit 43cfb224 authored by Sylvain Schmitz's avatar Sylvain Schmitz

allow comparisons with path on one side in extras

parent 30086e14
......@@ -63,12 +63,14 @@ op.extra = op.arith | op.string |
| ltOp | leOp | gtOp | geOp
| lessThanOp | lessThanOrEqualOp
| greaterThanOp | greaterThanOrEqualOp ) {
element firstOperand { op.arith },
element secondOperand { op.arith }
( element firstOperand { op.arith }, element secondOperand { op.arith } )
| ( element firstOperand { op.arith }, element secondOperand { path } )
| ( element firstOperand { path }, element secondOperand { op.arith } )
}
| element ( eqOp | neOp | equalOp | notEqualOp ) {
element firstOperand { op.string },
element secondOperand { op.string }
( element firstOperand { op.string }, element secondOperand { op.string } )
| ( element firstOperand { op.string }, element secondOperand { path } )
| ( element firstOperand { path }, element secondOperand { op.string } )
}
op.arith = fun.arith | varref | num
......@@ -77,7 +79,7 @@ op.arith = fun.arith | varref | num
element secondOperand { op.arith }
}
op.string = fun.string | varref | str
op.string = fun.string | varref | str | path
| element stringConcatenateOp {
element firstOperand { op.string },
element secondOperand { op.string }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment