kawa.standard

Class location

Implemented Interfaces:
Named, Printable

public class location
extends Syntax
implements Printable

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

Field Summary

static location
location

Method Summary

static Procedure
makeLocationProc(Location loc)
static Location
makeProcLocation$V(Procedure proc, Object[] args)
Expression
rewrite(Object obj, Translator tr)
Re-write an expression that is an "application" of this Syntax object.
static Expression
rewrite(Expression arg, Translator tr)

Methods inherited from class kawa.lang.Syntax

getName, getSymbol, print, rewrite, rewriteForm, rewriteForm, scanForDefinitions, scanForm, setName, setName

Field Details

location

public static final location location

Method Details

makeLocationProc

public static Procedure makeLocationProc(Location loc)

makeProcLocation$V

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

rewrite

public Expression rewrite(Object obj,
                          Translator tr)
Re-write an expression that is an "application" of this Syntax object.
Overrides:
rewrite in interface 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)