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

allow comparisons with path on one side in extras

parent 30086e14
......@@ -63,22 +63,24 @@ 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
| element ( addOp | subtractOp | modOp ) {
element firstOperand { op.arith },
element secondOperand { op.arith }
}
| element ( addOp | subtractOp | modOp ) {
element firstOperand { op.arith },
element secondOperand { op.arith }
}
op.string = fun.string | varref | str
| element stringConcatenateOp {
op.string = fun.string | varref | str | path
| element stringConcatenateOp {
element firstOperand { op.string },
element secondOperand { op.string }
}
\ No newline at end of file
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