Equations
- One or more equations did not get rendered due to their size.
Instances For
- pos : String.Pos.Raw
- recovering : Bool
- leadingStartPos? : Option String.Pos.Raw
Start of the initial whitespace to associate with the first token, or
noneif it has already been associated or should be discarded. When constructing a state directly for an embedded region, usesomeof the region's start position to retain its initial whitespace.
Instances For
@[instance_reducible]
Equations
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
def Lean.Parser.parseCommand (inputCtx : InputContext) (pmctx : ParserModuleContext) (mps : ModuleParserState) (messages : MessageLog) :
Equations
- One or more equations did not get rendered due to their size.
Instances For
def Lean.Parser.testParseModuleAux (env : Environment) (inputCtx : InputContext) (s : ModuleParserState) (msgs : MessageLog) (stxs : Array Syntax) :
Equations
- Lean.Parser.testParseModuleAux env inputCtx s msgs stxs = Lean.Parser.testParseModuleAux.parse✝ env inputCtx s msgs stxs
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Parser.testParseFile env fname = do let contents ← IO.FS.readFile fname Lean.Parser.testParseModule env fname.toString contents