File: .lake/packages/lean4/src/lean/Lean/Parser/Module.lean

full_name: Lean.Parser.Module.prelude
code: def «prelude»  
goal: Lean.Parser.Parser

full_name: Lean.Parser.Module.import
code: def «import»   
goal: Lean.Parser.Parser

full_name: Lean.Parser.Module.header
code: def header     
goal: Lean.Parser.Parser

full_name: Lean.Parser.Module.module
code: /--
  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. -/
@[run_builtin_parser_attribute_hooks]
def module     
goal: Lean.Parser.Parser

full_name: Lean.Parser.Module.updateTokens
code: def updateTokens (tokens : TokenTable) : TokenTable 
goal: Lean.Parser.TokenTable

full_name: Lean.Parser.ModuleParserState
code: structure ModuleParserState where
  pos        : String.Pos := 0
  recovering : Bool       := false
  deriving Inhabited
goal: Type

full_name: Lean.Parser.ModuleParserState.pos
code: structure ModuleParserState where
  pos        : String.Pos := 0
  recovering : Bool       := false
  deriving Inhabited
goal: String.Pos

full_name: Lean.Parser.ModuleParserState.recovering
code: structure ModuleParserState where
  pos        : String.Pos := 0
  recovering : Bool       := false
  deriving Inhabited
goal: Bool

full_name: Lean.Parser.instInhabitedModuleParserState
code: structure ModuleParserState where
  pos        : String.Pos := 0
  recovering : Bool       := false
  deriving Inhabited
goal: Inhabited Lean.Parser.ModuleParserState

full_name: _private.«.lake».packages.lean4.src.lean.Lean.Parser.Module.0.Lean.Parser.mkErrorMessage.lastTrailing
code: private partial def mkErrorMessage (c : InputContext) (pos : String.Pos) (stk : SyntaxStack) (e : Parser.Error) : Message 
goal: Option Substring

full_name: _private.«.lake».packages.lean4.src.lean.Lean.Parser.Module.0.Lean.Parser.mkErrorMessage
code: private partial def mkErrorMessage (c : InputContext) (pos : String.Pos) (stk : SyntaxStack) (e : Parser.Error) : Message 
goal: Lean.Message

full_name: Lean.Parser.parseHeader
code: def parseHeader (inputCtx : InputContext) : IO (Syntax × ModuleParserState × MessageLog) 
goal: IO (Lean.Syntax × Lean.Parser.ModuleParserState × Lean.MessageLog)

full_name: _private.«.lake».packages.lean4.src.lean.Lean.Parser.Module.0.Lean.Parser.mkEOI
code: private def mkEOI (pos : String.Pos) : Syntax 
goal: Lean.Syntax

full_name: Lean.Parser.isTerminalCommand
code: def isTerminalCommand (s : Syntax) : Bool 
goal: Bool

full_name: _private.«.lake».packages.lean4.src.lean.Lean.Parser.Module.0.Lean.Parser.consumeInput
code: private def consumeInput (inputCtx : InputContext) (pmctx : ParserModuleContext) (pos : String.Pos) : String.Pos 
goal: String.Pos

full_name: Lean.Parser.topLevelCommandParserFn
code: def topLevelCommandParserFn : ParserFn 
goal: Lean.Parser.ParserFn

full_name: Lean.Parser.parseCommand
code: partial def parseCommand (inputCtx : InputContext) (pmctx : ParserModuleContext) (mps : ModuleParserState) (messages : MessageLog) : Syntax × ModuleParserState × MessageLog 
goal: Lean.Syntax × Lean.Parser.ModuleParserState × Lean.MessageLog

full_name: Lean.Parser.testParseModuleAux
code: partial def testParseModuleAux (env : Environment) (inputCtx : InputContext) (s : ModuleParserState) (msgs : MessageLog) (stxs  : Array Syntax) : IO (Array Syntax) 
goal: IO (Array Lean.Syntax)

full_name: Lean.Parser.testParseModuleAux.parse
code: partial def testParseModuleAux (env : Environment) (inputCtx : InputContext) (s : ModuleParserState) (msgs : MessageLog) (stxs  : Array Syntax) : IO (Array Syntax) 
goal: IO (Array Lean.Syntax)

full_name: Lean.Parser.testParseModule
code: def testParseModule (env : Environment) (fname contents : String) : IO (TSyntax ``Parser.Module.module) 
goal: IO (Lean.TSyntax `Lean.Parser.Module.module)

full_name: Lean.Parser.testParseFile
code: def testParseFile (env : Environment) (fname : System.FilePath) : IO (TSyntax ``Parser.Module.module) 
goal: IO (Lean.TSyntax `Lean.Parser.Module.module)