commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henrib <>
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,

View this message in context:
Sent from the Commons - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message