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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -