- 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
- Lean.ParseImports.State.setPos s pos = { imports := s.imports, pos := pos, error? := s.error? }
Instances For
@[inline]
Equations
- Lean.ParseImports.State.mkError s msg = { imports := s.imports, pos := s.pos, error? := some msg }
Instances For
Equations
- Lean.ParseImports.State.mkEOIError s = Lean.ParseImports.State.mkError s "unexpected end of input"
Instances For
@[inline]
def
Lean.ParseImports.State.next
(s : Lean.ParseImports.State)
(input : String)
(pos : String.Pos)
:
Equations
- Lean.ParseImports.State.next s input pos = { imports := s.imports, pos := String.next input pos, error? := s.error? }
Instances For
@[inline]
def
Lean.ParseImports.State.next'
(s : Lean.ParseImports.State)
(input : String)
(pos : String.Pos)
(h : ¬String.atEnd input pos = true)
:
Equations
- Lean.ParseImports.State.next' s input pos h = { imports := s.imports, pos := String.next' input pos h, error? := s.error? }
Instances For
Equations
- Lean.ParseImports.finishCommentBlock.eoi s = Lean.ParseImports.State.mkError s "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]
def
Lean.ParseImports.keywordCore
(k : String)
(failure : Lean.ParseImports.Parser)
(success : Lean.ParseImports.Parser)
:
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 : Lean.ParseImports.Parser)
(success : Lean.ParseImports.Parser)
(input : String)
(s : Lean.ParseImports.State)
(i : String.Pos)
(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 : Lake.Name)
(runtimeOnly : Bool)
(s : Lean.ParseImports.State)
:
Equations
- Lean.ParseImports.State.pushModule module runtimeOnly s = { imports := Array.push s.imports { 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 = (Char.isAlphanum c || 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 : Lake.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✝ }