JavaScript is disabled on your browser.
Skip navigation links
gnu.commonlisp.lang

Class OrdinaryLambda

  • All Implemented Interfaces:
    gnu.kawa.format.Printable, Named


    public class OrdinaryLambda
    extends Lambda 
    The syntax transformer that rewrites the ordinary lambda list from CL. TODO: - arbitrary keyword symbols not supported (&key (secret password)). Most of it is implemented in comments, but there are a few bugs to iron out. - This class and its superclass could do with a refactoring. The goal would be to identify methods than can be sensibly overridden by the various parameter passing protocols in CL. - ANSI, related to refactoring, should differentiate between the lambda lists.
    • Field Detail

      • allowOtherKeysKeyword

        protected java.lang.Object allowOtherKeysKeyword
      • auxKeyword

        protected java.lang.Object auxKeyword
      • bodyKeyword

        protected java.lang.Object bodyKeyword
    • Constructor Detail

      • OrdinaryLambda

        public OrdinaryLambda()
    • Method Detail

      • setKeywords

        public void setKeywords(java.lang.Object optional,
         java.lang.Object rest,
         java.lang.Object key,
         java.lang.Object allowOthers,
         java.lang.Object aux,
         java.lang.Object body)
      • rewrite

        public void rewrite(LambdaExp lexp,
         java.lang.Object formals,
         java.lang.Object body,
         Translator tr,
         TemplateScope templateScopeRest)
        Top-level rewriter of lambda expressions.
        Overrides:
        rewrite in class Lambda
        Parameters:
        formals - the formal parameter list (or symbol)
        body - the body of the procedure
        tr - the Translator
      • rewriteFormals

        public void rewriteFormals(LambdaExp lexp,
         java.lang.Object formals,
         Translator tr,
         TemplateScope templateScopeRest)
        Rewrite the formal parameters in a lambda expression.
        Overrides:
        rewriteFormals in class Lambda
        Parameters:
        lexp - the lambda expression to rewrite.
        formals - the formal parameters list (or symbol)
      • print

        public void print(Consumer out)
        Specified by:
        print in interface gnu.kawa.format.Printable
        Overrides:
        print in class Lambda
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /