Class BracketApply

java.lang.Object
kawa.lang.Syntax
gnu.kawa.lispexpr.BracketApply
All Implemented Interfaces:
gnu.kawa.format.Printable, Named

public class BracketApply extends Syntax
Expand $bracket-apply$ macro. This is produced by the reader syntax exp[args]. Currently, it us only use for array types: type[]. In the future it might have other uses - perhaps parameterized tyoes, as in Scala.
  • Field Details

  • Constructor Details

    • BracketApply

      public BracketApply()
  • 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