Esempio n. 1
0
 public override void Apply(object[] args)
 {
     if(args.Length >= 1)
         op = (Symbol)args[0];
     if(args.Length >= 2)
         name = (Symbol)args[1];
     if(args.Length >= 3)
         value = args[2];
 }
Esempio n. 2
0
 public static Symbol Get(string name)
 {
     Symbol s;
     if (symbols.TryGetValue (name, out s)) {
         return s;
     }
     s = symbols [name] = new Symbol (name);
     return s;
 }
Esempio n. 3
0
 public override void Apply(object[] args)
 {
     if(args.Length >= 1)
         name = (Symbol)args[0];
 }
Esempio n. 4
0
 public override void Apply(object[] args)
 {
     if(args.Length >= 1)
         name = (Symbol)args[0];
     reactor.blackboard.CreateLabel(this);
 }
Esempio n. 5
0
 public Node GetLabel(Symbol name)
 {
     return labels[name].children[0];
 }