- imports : Array Lean.Import
- pos : String.Pos
Instances For
@[inline]
Equations
- s.setPos pos = { imports := s.imports, pos := pos, error? := s.error? }
Instances For
@[inline]
Instances For
Instances For
@[inline]
def
Lean.ParseImports.State.next
(s : Lean.ParseImports.State)
(input : String)
(pos : String.Pos)
:
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]
Instances For
@[inline]
Instances For
@[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
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
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]
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.
Instances For
- imports? : Option (Array Lean.Import)