- imports : Array Lean.Import
- pos : String.Pos
Instances For
Equations
- Lean.ParseImports.instInhabitedState = { default := { imports := default, pos := default, error? := default } }
Instances For
Equations
- Lean.ParseImports.instInhabitedParser = { default := fun (x : String) (s : Lean.ParseImports.State) => s }
@[inline]
Equations
- s.setPos pos = { imports := s.imports, pos := pos, error? := s.error? }
Instances For
@[inline]
Instances For
Equations
- s.mkEOIError = s.mkError "unexpected end of input"
Instances For
@[inline]
def
Lean.ParseImports.State.next
(s : Lean.ParseImports.State)
(input : String)
(pos : String.Pos)
:
Equations
- s.next input pos = { imports := s.imports, pos := input.next pos, error? := s.error? }
Instances For
@[inline]
def
Lean.ParseImports.State.next'
(s : Lean.ParseImports.State)
(input : String)
(pos : String.Pos)
(h : ¬input.atEnd pos = true)
:
Equations
- s.next' input pos h = { imports := s.imports, pos := input.next' pos h, error? := s.error? }
Instances For
Equations
- Lean.ParseImports.finishCommentBlock.eoi s = s.mkError "unterminated comment"
Instances For
@[specialize #[]]
@[inline]
Equations
- Lean.ParseImports.takeWhile p = Lean.ParseImports.takeUntil fun (c : Char) => !p c
Instances For
@[inline]
Equations
Instances For
Equations
- Lean.ParseImports.instAndThenParser = { andThen := fun (p : Lean.ParseImports.Parser) (q : Unit → Lean.ParseImports.Parser) => Lean.ParseImports.andthen p (q ()) }
@[inline]
Equations
- Lean.ParseImports.keywordCore k failure success input s = Lean.ParseImports.keywordCore.go k failure success input s 0 s.pos
Instances For
@[specialize #[]]
partial def
Lean.ParseImports.keywordCore.go
(k : String)
(failure success : Lean.ParseImports.Parser)
(input : String)
(s : Lean.ParseImports.State)
(i j : String.Pos)
:
@[inline]
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[inline]
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.ParseImports.State.pushModule
(module : Lean.Name)
(runtimeOnly : Bool)
(s : Lean.ParseImports.State)
:
Equations
- Lean.ParseImports.State.pushModule module runtimeOnly s = { imports := s.imports.push { module := module, runtimeOnly := runtimeOnly }, pos := s.pos, error? := s.error? }
Instances For
@[inline]
Equations
- Lean.ParseImports.isIdRestCold c = (decide (c = '_') || decide (c = ''') || c == '!' || c == '?' || Lean.isLetterLike c || Lean.isSubScriptAlnum c)
Instances For
@[inline]
Equations
- Lean.ParseImports.isIdRestFast c = (c.isAlphanum || c != '.' && c != '\n' && c != ' ' && Lean.ParseImports.isIdRestCold c)
Instances For
Equations
- Lean.ParseImports.moduleIdent runtimeOnly input s = Lean.ParseImports.moduleIdent.parse runtimeOnly input Lean.Name.anonymous s
Instances For
partial def
Lean.ParseImports.moduleIdent.parse
(runtimeOnly : Bool)
(input : String)
(module : Lean.Name)
(s : Lean.ParseImports.State)
:
@[specialize #[]]
@[inline]
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
Simpler and faster version of parseImports
. We use it to implement Lake.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.instToJsonImport = { toJson := Lean.toJsonImport✝ }
- imports? : Option (Array Lean.Import)
Instances For
Equations
- Lean.instToJsonPrintImportResult = { toJson := Lean.toJsonPrintImportResult✝ }
Equations
- Lean.instToJsonPrintImportsResult = { toJson := Lean.toJsonPrintImportsResult✝ }