Ejemplo n.º 1
0
        public static Variable ToVariable(Machine machine, ValueEnvironment environment, Symbol symbol)
        {
            string ns = symbol.Namespace;

            if (String.IsNullOrEmpty(ns))
                ns = (string)environment.GetValue(Machine.CurrentNamespaceKey);

            string name = symbol.Name;

            Variable variable = machine.GetVariable(ns, name);

            if (variable == null)
                variable = Variable.Intern(machine, ns, name);

            return variable;
        }
Ejemplo n.º 2
0
 public SymbolExpression(Symbol symbol)
 {
     this.symbol = symbol;
 }