Documentation

StrataDDM.Elab.DialectM

An argument declaration with annotations for the source location of name and type.

Instances For
    structure StrataDDM.Elab.ArgDeclsMap (argc : Nat) :

    Map for arg declarations.

    Instances For
      def StrataDDM.Elab.ArgDeclsMap.isType {argc : Nat} (m : ArgDeclsMap argc) (lvl : Fin argc) :
      Equations
      Instances For
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          Adds an additional declaration to the list of arguments.

          Requires proof the name is new.

          Equations
          Instances For
            def StrataDDM.Elab.ArgDeclsMap.argLevel? {argc : Nat} (argDecls : ArgDeclsMap argc) (name : String) :
            Option (Fin argc)
            Equations
            Instances For
              def StrataDDM.Elab.asTypeVar {argc : Nat} (argDecls : ArgDeclsMap argc) (loc : SourceRange) (tpId : MaybeQualifiedIdent) (argChildren : Array Tree) :
              Equations
              Instances For
                def StrataDDM.Elab.translateFunMacro {argc : Nat} (argDecls : ArgDeclsMap argc) (loc : SourceRange) (bindingsTree : Tree) (rType : PreType) :
                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  @[irreducible]
                  def StrataDDM.Elab.translatePreType {argc : Nat} (argDecls : ArgDeclsMap argc) (tree : Tree) :

                  Evaluate the tree as a type expression.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    def StrataDDM.Elab.translateArgDeclKind {argc : Nat} (argDecls : ArgDeclsMap argc) (tree : Tree) :

                    Evaluate the tree as a type expression.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For

                        Translate a FunctionIterScope syntax tree to the AST type

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For

                          Translate a NamePatternPart syntax tree to the AST type

                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For

                            Translate a NamePattern syntax tree (array of NamePatternPart)

                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For

                              Translate a TypeRef syntax tree to the AST type

                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For

                                Translate a TypeRefList syntax tree (array of TypeRef)

                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For

                                  Translate a FunctionTemplate syntax tree to the AST type

                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For
                                    partial def StrataDDM.Elab.translateMetadataArg {argc : Nat} (args : ArgDeclsMap argc) (argName : String) (expected : MetadataArgType) (tree : Tree) :
                                    Equations
                                    • One or more equations did not get rendered due to their size.
                                    Instances For
                                      Equations
                                      • One or more equations did not get rendered due to their size.
                                      Instances For
                                        def StrataDDM.Elab.translateMetadata {argc : Nat} (argDecls : ArgDeclsMap argc) (tree : Tree) :

                                        This parses an optional metadata

                                        Equations
                                        • One or more equations did not get rendered due to their size.
                                        Instances For

                                          Translate metadata if it is optional.

                                          Equations
                                          Instances For
                                            def StrataDDM.Elab.translateOptMetadata! {argc : Nat} (argDecls : ArgDeclsMap argc) (tree : Tree) :

                                            Translate metadata if it is optional.

                                            Equations
                                            • One or more equations did not get rendered due to their size.
                                            Instances For
                                              Equations
                                              • One or more equations did not get rendered due to their size.
                                              Instances For
                                                def StrataDDM.Elab.translateArgDecls (tree : Tree) :
                                                ElabM ((argc : Nat) × ArgDeclsMap argc)
                                                Equations
                                                • One or more equations did not get rendered due to their size.
                                                Instances For
                                                  Instances For
                                                    Equations
                                                    • One or more equations did not get rendered due to their size.
                                                    Instances For
                                                      partial def StrataDDM.Elab.elabSyntaxDefAtom {argc : Nat} (argDecls : ArgDeclsMap argc) (defaultPrec : Nat) (arg : Tree) :
                                                      def StrataDDM.Elab.translateSyntaxDef {argc : Nat} (argDecls : ArgDeclsMap argc) (mdTree tree : Tree) :
                                                      Equations
                                                      • One or more equations did not get rendered due to their size.
                                                      Instances For
                                                        Instances For
                                                          • declState : DeclState
                                                          • dialect : Dialect
                                                          • missingImport : Bool

                                                            Flag to indicate dialect is missing an import. Missing declarations will be silenced.

                                                          Instances For

                                                            Read the current loaded dialects from the IO.Ref.

                                                            Equations
                                                            Instances For
                                                              @[implicit_reducible]
                                                              Equations
                                                              • One or more equations did not get rendered due to their size.
                                                              @[implicit_reducible]
                                                              Equations
                                                              • One or more equations did not get rendered due to their size.
                                                              Equations
                                                              Instances For
                                                                Equations
                                                                Instances For
                                                                  @[implicit_reducible]
                                                                  Equations
                                                                  • One or more equations did not get rendered due to their size.
                                                                  def StrataDDM.Elab.checkTreeSize (tree : Tree) (size : Nat) :
                                                                  Decidable (tree.children.size = size)
                                                                  Equations
                                                                  Instances For
                                                                    Equations
                                                                    • One or more equations did not get rendered due to their size.
                                                                    Instances For
                                                                      Equations
                                                                      • One or more equations did not get rendered due to their size.
                                                                      Instances For
                                                                        Equations
                                                                        • One or more equations did not get rendered due to their size.
                                                                        Instances For
                                                                          Equations
                                                                          • One or more equations did not get rendered due to their size.
                                                                          Instances For
                                                                            Equations
                                                                            • One or more equations did not get rendered due to their size.
                                                                            Instances For
                                                                              Equations
                                                                              • One or more equations did not get rendered due to their size.
                                                                              Instances For
                                                                                Equations
                                                                                • One or more equations did not get rendered due to their size.
                                                                                Instances For