Exemplo n.º 1
0
 public static object DefineCompilerMacro(Symbol sym, LambdaClosure value, string doc)
 {
     if (!Functionp(sym.Value))
     {
         ThrowError("Cannot define compiler macro for non-function {0}", sym);
     }
     sym.CompilerMacroValue = value;
     sym.CompilerDocumentation = doc;
     return sym;
 }
Exemplo n.º 2
0
 public static object DefineMacro(Symbol sym, LambdaClosure value, string doc)
 {
     EraseVariable(sym);
     sym.MacroValue = value;
     sym.CompilerDocumentation = doc;
     return sym;
 }