Example #1
0
 public static Value Eval(RuntimeInstance inst, string s)
 {
     using (new InstanceScope(inst))
     {
         return(CodeUnit.GetExpression(s).Eval());
     }
 }
Example #2
0
 public static Value EvalCode(this IGml codeObject)
 {
     return(CodeUnit.GetExpression(codeObject).Eval());
 }