Documentation

Lean.Elab.Syntax

Expand optional «precedence» where «precedence» := leading_parser " : " >> precedenceParser

Instances For
    Instances For
      @[reducible, inline]
      Instances For
        @[reducible, inline]
        Instances For

          (Try to) add a term info for the category catName at ref.

          Instances For

            (Try to) add a term info for the alias with info info at ref.

            Instances For

              Given a stx of category syntax, return a (newStx, lhsPrec?), where newStx is of category term. After elaboration, newStx should have type TrailingParserDescr if lhsPrec?.isSome, and ParserDescr otherwise.

              Instances For
                Instances For

                  Elaborates the given syntax command and returns the new node kind.

                  Instances For
                    Instances For
                      def Lean.Elab.Command.expandNoKindMacroRulesAux (alts : Array (TSyntax `Lean.Parser.Term.matchAlt)) (cmdName : String) (mkCmd : Option NameArray (TSyntax `Lean.Parser.Term.matchAlt)CommandElabM Command) :

                      Infer syntax kind k from first pattern, put alternatives of same kind into new macro/elab_rules (kind := k) via mkCmd (some k), leave remaining alternatives (via mkCmd none) to be recursively expanded.

                      Instances For