kawa.standard

Class syntax_error

Implemented Interfaces:
Named, Printable

public class syntax_error
extends Syntax

Implements the Kawa extension "%syntax-error". Prints out its arguments in an error message.

Field Summary

static syntax_error
syntax_error

Method Summary

static Expression
error(Object form, Object[] message)
Expression
rewrite(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, rewrite, rewriteForm, rewriteForm, scanForDefinitions, scanForm, setName, setName

Field Details

syntax_error

public static final syntax_error syntax_error

Method Details

error

public static Expression error(Object form,
                               Object[] message)

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