Package kawa.standard

Class constant_fold

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

public class constant_fold extends Syntax
Implements the "constant-fold" transformer.
  • Field Details

    • constant_fold

      public static final constant_fold constant_fold
  • Constructor Details

    • constant_fold

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