Documentation

Lean.Elab.DocString.Builtin.Keywords

The code represents an atom drawn from some syntax.

  • name : Name

    The syntax kind's name.

  • category : Name

    The syntax category

Instances For
    @[instance_reducible]
    Equations
    def Lean.Doc.kw (cat of : Ident := mkIdent Name.anonymous) (xs : TSyntaxArray `Lean.Doc.Parser.inline) :

    A reference to a particular syntax kind, via one of its atoms.

    It is an error if the syntax kind can't be automatically determined to contain the atom, or if multiple syntax kinds contain it. If the parser for the syntax kind is sufficiently complex, detection may fail.

    Specifying the category or kind using the named arguments cat and of can narrow down the process.

    Use kw? to receive a suggestion of a specific kind, and kw! to disable the check.

    Equations
    Instances For
      def Lean.Doc.kw.getArgs :
      TSyntaxArray `Lean.Doc.Parser.inline → StateT (Array (TSyntax `Lean.Doc.Parser.arg)) DocM (Inline ElabInline)

      A reference to a particular syntax kind, via one of its atoms.

      It is an error if the syntax kind can't be automatically determined to contain the atom, or if multiple syntax kinds contain it. If the parser for the syntax kind is sufficiently complex, detection may fail.

      Specifying the category or kind using the named arguments cat and of can narrow down the process.

      Use kw? to receive a suggestion of a specific kind, and kw! to disable the check.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        def Lean.Doc.kw? (cat of : Ident := mkIdent Name.anonymous) (xs : TSyntaxArray `Lean.Doc.Parser.inline) :

        A reference to a particular syntax kind, via one of its atoms.

        It is an error if the syntax kind can't be automatically determined to contain the atom, or if multiple syntax kinds contain it. If the parser for the syntax kind is sufficiently complex, detection may fail.

        Specifying the category or kind using the named arguments cat and of can narrow down the process.

        Use kw? to receive a suggestion of a specific kind, and kw! to disable the check.

        Equations
        Instances For
          def Lean.Doc.kw?.getArgs :
          TSyntaxArray `Lean.Doc.Parser.inline → StateT (Array (TSyntax `Lean.Doc.Parser.arg)) DocM (Inline ElabInline)

          A reference to a particular syntax kind, via one of its atoms.

          It is an error if the syntax kind can't be automatically determined to contain the atom, or if multiple syntax kinds contain it. If the parser for the syntax kind is sufficiently complex, detection may fail.

          Specifying the category or kind using the named arguments cat and of can narrow down the process.

          Use kw? to receive a suggestion of a specific kind, and kw! to disable the check.

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

            Checks that a syntax kind name exists.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              def Lean.Doc.kw! (of : Option Ident := none) (scope : DocScope := DocScope.local) (xs : TSyntaxArray `Lean.Doc.Parser.inline) :

              A reference to a particular syntax kind, via one of its atoms.

              It is an error if the syntax kind can't be automatically determined to contain the atom, or if multiple syntax kinds contain it. If the parser for the syntax kind is sufficiently complex, detection may fail.

              Specifying the category or kind using the named arguments cat and of can narrow down the process.

              Use kw? to receive a suggestion of a specific kind, and kw! to disable the check.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                def Lean.Doc.kw!.getArgs :
                TSyntaxArray `Lean.Doc.Parser.inline → StateT (Array (TSyntax `Lean.Doc.Parser.arg)) DocM (Inline ElabInline)

                A reference to a particular syntax kind, via one of its atoms.

                It is an error if the syntax kind can't be automatically determined to contain the atom, or if multiple syntax kinds contain it. If the parser for the syntax kind is sufficiently complex, detection may fail.

                Specifying the category or kind using the named arguments cat and of can narrow down the process.

                Use kw? to receive a suggestion of a specific kind, and kw! to disable the check.

                Equations
                Instances For

                  Suggests the kw role, if applicable.

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