Class 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.
    • Constructor Detail

      • BracketApply

        public BracketApply()
    • Method Detail

      • 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