Package kawa.standard

Class syntax_error

java.lang.Object
kawa.lang.Syntax
kawa.standard.syntax_error
All Implemented Interfaces:
gnu.kawa.format.Printable, Named

public class syntax_error extends Syntax
Implements the "syntax-error" form. Prints out its arguments in an error message.
  • Field Details

    • syntax_error

      public static final syntax_error syntax_error
  • Constructor Details

    • syntax_error

      public syntax_error()
  • Method Details

    • rewrite

      public Expression rewrite(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 invocation)
      tr - the Translator that provides context
      Returns:
      the re-written expression
    • error

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