Ejemplo n.º 1
0
 public LispFunction(LispList parameters, LispElement body, LispEnvironment funcEnv, LispSymbol funcName)
 {
     this.parameters = parameters;
     this.body       = body;
     this.funcName   = funcName;
     this.funcEnv    = (LispEnvironment)funcEnv.Clone();
 }
Ejemplo n.º 2
0
        public List <LispElement> parse(Stream stream)
        {
            var reader      = new StreamReader(stream);
            var expressions = new List <LispElement>();

            while (!reader.EndOfStream)
            {
                LispElement expression = parseExpression(reader);
                expressions.Add(expression);
            }
            return(expressions);
        }
Ejemplo n.º 3
0
 public void Add(LispSymbol symbol, LispElement element)
 {
     env[symbol] = element;
 }
Ejemplo n.º 4
0
 public LispFunction(LispList parameters, LispElement body, LispEnvironment funcEnv)
     : this(parameters, body, funcEnv, null)
 {
 }
Ejemplo n.º 5
0
 public LispMacro(LispList parameters, LispElement body, LispEnvironment funcEnv)
 {
     throw new NotImplementedException();
 }