2
Vote

SyntaxError: Unexpected character: I Line: 1, Column: 1

description

hi; i got this exception "SyntaxError: Unexpected character: I Line: 1, Column: 1" when i am using "I" charachter.

 ExpressionContext EC = new ExpressionContext();
 //ectx.Options.ParseCulture = System.Globalization.CultureInfo.GetCultureInfo("en-US");          
            
 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: I Line: 1, Column: 1

comments