Documentation

Lean.Elab.DocString.Builtin.Parsing

def Lean.Doc.onlyCodes {m : Type → Type} [Monad m] [MonadError m] (xs : TSyntaxArray `Lean.Doc.Parser.inline) :

Requires that all non-whitespace arguments to a role are code elements, returning their content if so. Throws an error otherwise.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    def Lean.Doc.onlyCode {m : Type → Type} [Monad m] [MonadError m] (xs : TSyntaxArray `Lean.Doc.Parser.inline) :

    Requires that the non-whitespace arguments to a role are a single code element, returning its content if so. Throws an error otherwise.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      def Lean.Doc.parseContent {m : Type → Type} [Monad m] [MonadFileMap m] [MonadEnv m] [MonadError m] [MonadLog m] [MonadOptions m] (p : Parser.ParserFn) (tok : Syntax) (contents : String) :
      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

            Parses the contents of an inline code element.

            Equations
            Instances For

              Parses the contents of an inline code element, reporting errors rather than throwing.

              Equations
              Instances For

                Parses the contents of a string literal argument.

                Equations
                Instances For

                  Parses the contents of a string literal argument, reporting errors rather than throwing.

                  Equations
                  Instances For