Parser for a Lean module. We never actually run this parser but instead use the imperative definitions below that
return the same syntax tree structure, but add error recovery. Still, it is helpful to have a Parser definition
for it in order to auto-generate helpers such as the pretty printer.
Instances For
- pos : String.Pos.Raw
- recovering : Bool
Instances For
@[implicit_reducible]
def
Lean.Parser.parseHeader
(inputCtx : InputContext)
:
IO (TSyntax `Lean.Parser.Module.header × ModuleParserState × MessageLog)
Instances For
def
Lean.Parser.parseCommand
(inputCtx : InputContext)
(pmctx : ParserModuleContext)
(mps : ModuleParserState)
(messages : MessageLog)
:
Instances For
def
Lean.Parser.testParseModuleAux
(env : Environment)
(inputCtx : InputContext)
(s : ModuleParserState)
(msgs : MessageLog)
(stxs : Array Syntax)
: