commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henrib <hen...@apache.org>
Subject Re: [JEXL] relational operator
Date Mon, 16 Jan 2012 09:31:44 GMT
Hi Grace,
Unfortunately, it is not possible to change JEXL syntax (besides modifying
the source code in parser.jjt) which closely mimics JScript/Bash/C/Java.

If you were to replace the '=' operators in the source expression, you'll
also need to replace the JEXL assignment '=' operator with something else (
':=' ?).
Your source would thus use:
'<>' for '!='
'=' for '=='
':=' for '=' (or any other convention).

Be aware that the operator precedence rules (in particular wrt '^' if
considered as exponentiation) will not fit the 'mathematical' precedence.
Hope this help,
Cheers
Henrib


--
View this message in context: http://apache-commons.680414.n4.nabble.com/JEXL-relational-operator-tp4291210p4298926.html
Sent from the Commons - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message