Example #1
0
File: PSL.cs Project: Silica/CsPSL
 public bool LoadString(string str)
 {
     var t = new Tokenizer(str);
     var p = new Parser(t);
     var v = new Variable();
     if (p.Parse(v))
         return true;
     v.prepare(env);
     v["print"] = new Variable(print);
     env.Set(v);
     return false;
 }
Example #2
0
 public Parser(Tokenizer x)
 {
     t = x;
 }