TOML Parser Utilities #
Generic parser utilities used by Lake's TOML parser.
@[inline]
ParserFn
combinator that runs f
with the current position.
Equations
Instances For
Match an arbitrary parser or do nothing.
Equations
Instances For
@[inline]
A sequence of n
repetitions of a parser function.
Equations
Instances For
@[specialize #[]]
Equations
Instances For
def
Lake.Toml.mkUnexpectedCharError
(s : Lean.Parser.ParserState)
(c : Char)
(expected : List String := [])
(pushMissing : Bool := true)
:
Equations
Instances For
@[inline]
Equations
Instances For
Equations
Instances For
Push a new atom onto the syntax stack.
Equations
Instances For
Match an arbitrary ParserFn
and return the consumed String in a Syntax.atom
.
Equations
Instances For
Equations
Instances For
def
Lake.Toml.pushLit
(kind : Lean.SyntaxNodeKind)
(startPos : String.Pos)
(trailingFn : Lean.Parser.ParserFn := skipFn)
:
Push (Syntax.node kind <new-atom>)
onto the syntax stack.
Equations
Instances For
def
Lake.Toml.litFn
(kind : Lean.SyntaxNodeKind)
(p : Lean.Parser.ParserFn)
(trailingFn : Lean.Parser.ParserFn := skipFn)
:
Equations
Instances For
def
Lake.Toml.lit
(kind : Lean.SyntaxNodeKind)
(p : Lean.Parser.ParserFn)
(trailingFn : Lean.Parser.ParserFn := skipFn)
:
Equations
Instances For
def
Lake.Toml.litWithAntiquot
(name : String)
(kind : Lean.SyntaxNodeKind)
(p : Lean.Parser.ParserFn)
(trailingFn : Lean.Parser.ParserFn := skipFn)
(anonymous : Bool := false)
:
Equations
Instances For
@[inline]
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
@[reducible, inline]
Parser → Parser
hidden by an abbrev
.
Prevents the formatter/parenthesizer generator from transforming it.
Equations
Instances For
def
Lake.Toml.recNodeWithAntiquot
(name : String)
(kind : Lean.SyntaxNodeKind)
(f : ParserMapFn)
(anonymous : Bool := false)
:
Equations
Instances For
def
Lake.Toml.recNodeWithAntiquot.go
(name : String)
(kind : Lean.SyntaxNodeKind)
(f : ParserMapFn)
(anonymous : Bool := false)
(p : Lean.Parser.Parser)
:
Equations
Instances For
@[inline]
Equations
Instances For
@[inline]