kawa.standard
Class let_syntax

java.lang.Object
  extended by kawa.lang.Syntax
      extended by kawa.standard.let_syntax
All Implemented Interfaces:
Named, Printable

public class let_syntax
extends Syntax

Implementation of the standard Scheme let-syntax and letrec-syntax forms. Not quite working yet.


Field Summary
static let_syntax let_syntax
           
static let_syntax letrec_syntax
           
 
Constructor Summary
let_syntax(boolean recursive, java.lang.String name)
           
 
Method Summary
 Expression rewrite(java.lang.Object obj, Translator tr)
          Re-write an expression that is an "application" of this Syntax object.
 
Methods inherited from class kawa.lang.Syntax
getName, getSymbol, print, rewriteForm, rewriteForm, scanForDefinitions, scanForm, setName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

let_syntax

public static final let_syntax let_syntax

letrec_syntax

public static final let_syntax letrec_syntax
Constructor Detail

let_syntax

public let_syntax(boolean recursive,
                  java.lang.String name)
Method Detail

rewrite

public Expression rewrite(java.lang.Object obj,
                          Translator tr)
Description copied from class: Syntax
Re-write an expression that is an "application" of this Syntax object.

Overrides:
rewrite in class Syntax
Parameters:
obj - the arguments to this "application" (i.e. the cdr of the macro/builtin invokation)
tr - the Translator that provides context
Returns:
the re-written expression