c# - SyntaxError exception in Ciloci.Flee.ExpressionContext -


while using flee got exception message "syntaxerror: unexpected character: line: 1, column: 1" when trying use character in expression string.

expressioncontext ec = new expressioncontext();    ec.variables.add("i", 1); ec.variables.add("b", 4); ec.variables.add("p", new point(0, 0, 0));  string exp = "i > b";  idynamicexpression de = ec.compiledynamic(exp);  bool o = (bool)de.evaluate();  //syntaxerror: unexpected character: line: 1, column: 1 

same thing happens "point.x > 0" well.

i has problem, can replace formula , variables "i" , works.

.replace("i", "i") 

Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -