Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
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.
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.Parser.instInhabitedModuleParserState = { default := { pos := default, recovering := default } }
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.Parser.isEOI s = Lean.Syntax.isOfKind s `Lean.Parser.Module.eoi
Equations
- Lean.Parser.isExitCommand s = Lean.Syntax.isOfKind s `Lean.Parser.Command.exit
Equations
- Lean.Parser.topLevelCommandParserFn = Lean.Parser.commandParser.fn
def
Lean.Parser.parseCommand
(inputCtx : Lean.Parser.InputContext)
(pmctx : Lean.Parser.ParserModuleContext)
(mps : Lean.Parser.ModuleParserState)
(messages : Lean.MessageLog)
:
Equations
- One or more equations did not get rendered due to their size.
def
Lean.Parser.testParseModuleAux
(env : Lean.Environment)
(inputCtx : Lean.Parser.InputContext)
(s : Lean.Parser.ModuleParserState)
(msgs : Lean.MessageLog)
(stxs : Array Lean.Syntax)
:
Equations
- Lean.Parser.testParseModuleAux env inputCtx s msgs stxs = Lean.Parser.testParseModuleAux.parse env inputCtx s msgs stxs
partial def
Lean.Parser.testParseModuleAux.parse
(env : Lean.Environment)
(inputCtx : Lean.Parser.InputContext)
(state : Lean.Parser.ModuleParserState)
(msgs : Lean.MessageLog)
(stxs : Array Lean.Syntax)
:
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.Parser.testParseFile env fname = do let contents ← IO.FS.readFile fname Lean.Parser.testParseModule env fname.toString contents