kawa.standard
Class define_alias

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

public class define_alias
extends Syntax


Field Summary
static define_alias define_alias
           
 
Constructor Summary
define_alias()
           
 
Method Summary
 Expression rewrite(java.lang.Object obj, Translator tr)
          Re-write an expression that is an "application" of this Syntax object.
 boolean scanForDefinitions(Pair st, java.util.Vector forms, ScopeExp defs, Translator tr)
          Check if a statement is a definition, for initial pass.
 
Methods inherited from class kawa.lang.Syntax
getName, getSymbol, print, rewriteForm, rewriteForm, scanForm, setName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

define_alias

public static final define_alias define_alias
Constructor Detail

define_alias

public define_alias()
Method Detail

scanForDefinitions

public boolean scanForDefinitions(Pair st,
                                  java.util.Vector forms,
                                  ScopeExp defs,
                                  Translator tr)
Description copied from class: Syntax
Check if a statement is a definition, for initial pass. Semi-deprecated - should convert calls to use scanForm.

Overrides:
scanForDefinitions in class Syntax
Parameters:
st - the statement to check
forms - where to append the (possibly-modified) statement
defs - where to add Declarations for found definitions
tr - the compilation state
Returns:
true on success

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