kawa.standard
Class location

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

public class location
extends Syntax

The Syntax transformer that re-writes the Kawa "location" primitive.


Field Summary
static location location
           
 
Constructor Summary
location()
           
 
Method Summary
static Procedure makeLocationProc(Location loc)
           
static Location makeProcLocation$V(Procedure proc, java.lang.Object[] args)
           
static Expression rewrite(Expression arg, Translator tr)
           
 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

location

public static final location location
Constructor Detail

location

public location()
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

rewrite

public static Expression rewrite(Expression arg,
                                 Translator tr)

makeProcLocation$V

public static Location makeProcLocation$V(Procedure proc,
                                          java.lang.Object[] args)

makeLocationProc

public static Procedure makeLocationProc(Location loc)