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
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.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Instances For
def
Lean.Parser.parseCommand
(inputCtx : Lean.Parser.InputContext)
(pmctx : Lean.Parser.ParserModuleContext)
(mps : Lean.Parser.ModuleParserState)
(messages : Lean.MessageLog)
:
Instances For
def
Lean.Parser.testParseModuleAux
(env : Lean.Environment)
(inputCtx : Lean.Parser.InputContext)
(s : Lean.Parser.ModuleParserState)
(msgs : Lean.MessageLog)
(stxs : Array Lean.Syntax)
:
Instances For
partial def
Lean.Parser.testParseModuleAux.parse
(env : Lean.Environment)
(inputCtx : Lean.Parser.InputContext)
(state : Lean.Parser.ModuleParserState)
(msgs : Lean.MessageLog)
(stxs : Array Lean.Syntax)
:
def
Lean.Parser.testParseModule
(env : Lean.Environment)
(fname contents : String)
:
IO (Lean.TSyntax `Lean.Parser.Module.module)
Instances For
def
Lean.Parser.testParseFile
(env : Lean.Environment)
(fname : System.FilePath)
:
IO (Lean.TSyntax `Lean.Parser.Module.module)
Equations
- Lean.Parser.testParseFile env fname = do let contents ← IO.FS.readFile fname Lean.Parser.testParseModule env fname.toString contents