Documentation

Lean.Parser.Module

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    • recovering : Bool
    • leadingStartPos? : Option String.Pos.Raw

      Start of the initial whitespace to associate with the first token, or none if it has already been associated or should be discarded. When constructing a state directly for an embedded region, use some of the region's start position to retain its initial whitespace.

    Instances For
      def Lean.Parser.parseHeader (inputCtx : InputContext) (startPos : String.Pos.Raw := 0) :
      IO (TSyntax `Lean.Parser.Module.header × ModuleParserState × MessageLog)

      Parses a module header starting at startPos (default: 0), bounded by inputCtx.endPos.

      startPos must be a valid UTF-8 byte position in inputCtx.inputString at or before inputCtx.endPos. Compute it after any line-ending normalization by mkInputContext. Syntax offsets refer to this string; diagnostic positions use inputCtx.fileMap.

      Pass the returned parser state to parseCommand to continue parsing the same region.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        Equations
        Instances For
          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            Equations
            Instances For
              def Lean.Parser.testParseModule (env : Environment) (fname contents : String) :
              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                Equations
                Instances For