Class Macro

  extended byjsint.Procedure
      extended byjsint.Closure
          extended byjsint.Macro
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Runnable, SchemeProcedure, java.io.Serializable

public class Macro
extends Closure

A macro.

Peter Norvig, Copyright 1998, peter@norvig.com, license subsequently modified by Jscheme project members licensed under zlib licence (see license.txt)
See Also:
Serialized Form

Field Summary
Fields inherited from class jsint.Procedure
maxArgs, minArgs, name
Constructor Summary
Macro(java.lang.Object parms, java.lang.Object body, LexicalEnvironment lexenv)
          Make a macro from a parameter list, body, and environment.
Method Summary
static java.lang.Object expand(Pair x)
 java.lang.String toString()
Methods inherited from class jsint.Closure
apply, copy, setName
Methods inherited from class jsint.Procedure
apply, apply, catching, getName, makeArgArray, makeArgArray, nParms, run, stripExceptionWrapper, synchronize, throwObject, throwRuntimeException, toStringArgs, tryCatch, tryFinally
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public Macro(java.lang.Object parms,
             java.lang.Object body,
             LexicalEnvironment lexenv)
Make a macro from a parameter list, body, and environment.

Method Detail


public static java.lang.Object expand(Pair x)


public java.lang.String toString()
toString in class Closure