TOML Grammar #
A Lean encoding of the v1.0.0 TOML grammar (en, [abnf]]2)
using Lean.Parser
objects. The current encoding elides the use of
tokens entirely, relying purely on custom parser functions.
Is it a TOML control character? (excludes tabs and spaces)
Equations
Instances For
Trailing Functions #
Consume optional horizontal whitespace (i.e., tab or space).
Equations
Instances For
Consumes the LF following a CR in a CRLF newline.
Equations
Instances For
Consumes the body of a comment.
Equations
Instances For
Consume optional whitespace (space, tab, or newline).
Consume optional sequence of whitespace / newline(s) / comment (s).
Strings #
Consumes a TOML string escape sequence after a \
.
Equations
Instances For
Numerals (Date-Times, Floats, and Integers) #
@[inline]
def
Lake.Toml.timeTailFn.timeOffsetFn
(allowOffset : Bool)
(curr : Char)
(nextPos : String.Pos)
(c : Lean.Parser.ParserContext)
(s : Lean.Parser.ParserState)
: