Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.memoire.silk
Class SilkMacro  view SilkMacro download SilkMacro.java

java.lang.Object
  extended bycom.memoire.silk.SilkSchemeUtils
      extended bycom.memoire.silk.SilkProcedure
          extended bycom.memoire.silk.SilkClosure
              extended bycom.memoire.silk.SilkMacro

public class SilkMacro
extends SilkClosure


Field Summary
 
Fields inherited from class com.memoire.silk.SilkClosure
body, env, parms
 
Fields inherited from class com.memoire.silk.SilkProcedure
name
 
Fields inherited from class com.memoire.silk.SilkSchemeUtils
FALSE, ONE, TRUE, ZERO
 
Constructor Summary
SilkMacro(java.lang.Object parms, java.lang.Object body, SilkEnvironment env)
          Make a macro from a parameter list, body, and environment.
 
Method Summary
 SilkPair expand(SilkScheme interpreter, SilkPair oldSilkPair, java.lang.Object args)
          Replace the old cons cell with the macro expansion, and return it.
static java.lang.Object macroExpand(SilkScheme interpreter, java.lang.Object x)
          SilkMacro expand an expression
 
Methods inherited from class com.memoire.silk.SilkClosure
apply
 
Methods inherited from class com.memoire.silk.SilkProcedure
proc, toString
 
Methods inherited from class com.memoire.silk.SilkSchemeUtils
chr, chr, cons, equal, eqv, error, first, inPort, length, list, list, listStar, listToString, listToVector, num, num, outPort, p, p, rest, reverse, second, setFirst, setRest, str, stringify, stringify, stringify, sym, third, truth, truth, vec, vectorToList, warn, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SilkMacro

public SilkMacro(java.lang.Object parms,
                 java.lang.Object body,
                 SilkEnvironment env)
Make a macro from a parameter list, body, and environment.

Method Detail

expand

public SilkPair expand(SilkScheme interpreter,
                       SilkPair oldSilkPair,
                       java.lang.Object args)
Replace the old cons cell with the macro expansion, and return it.


macroExpand

public static java.lang.Object macroExpand(SilkScheme interpreter,
                                           java.lang.Object x)
SilkMacro expand an expression