jsint
Class Macro

java.lang.Object
  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.

Author:
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

Macro

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

Method Detail

expand

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

toString

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