Marcus,
Changing the symbol for an operator is quite straightforward using the
Configurable parser
Jep jep = new Jep(new StandardConfigurableParser());
// Get the existing operator
Operator eq1=jep.getOperatorTable().getEQ();
// Create a new equality operator with the symbol =, the same
function and the same set of flags
Operator eq2 = new Operator("=",eq1.getPFMC(),eq1.getFlags());
// add it with the same precedence level
((OperatorTable2)jep.getOperatorTable()).addOperator(new
OperatorKey(){},eq2,eq1);
// remove the assignment operator
((OperatorTable2)jep.getOperatorTable()).removeOperator(OperatorTable2.SpecialOperators.ASSIGN);
jep.reinitializeComponents();
so
if(x='Test',1,0)
and
if(x=='Test',1,0)
will both parse. If you just want one symbol its easier to just to do
jep.getOperatorTable().getAssign().setSymbol(":=");
Richard
On Jan 3, 10:41 pm, Marcu s Gattinger <
gattinger1...@googlemail.com>
wrote: