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]

    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.

    Instances For

      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.

      Instances For

        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.

        Instances For

          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.

          Instances For

            Checks that a syntax kind name exists.

            Instances For
              def Lean.Doc.kw! (of : Option Ident := none) (scope : DocScope := DocScope.local) (xs : TSyntaxArray `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.

              Instances For

                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.

                Instances For

                  Suggests the kw role, if applicable.

                  Instances For