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
@[inline]
Equations
Instances For
@[inline]
Equations
- Lean.Json.Parser.lookahead p desc = do let c ← Std.Internal.Parsec.peek! if p c then pure () else Std.Internal.Parsec.fail ("expected " ++ desc)
Instances For
@[inline]
Equations
- Lean.Json.Parser.natNonZero = do Lean.Json.Parser.lookahead (fun (c : Char) => (decide ('1' ≤ c) && decide (c ≤ '9')) = true) "1-9" Lean.Json.Parser.natCore 0
Instances For
@[inline]
Equations
- Lean.Json.Parser.natNumDigits = do Lean.Json.Parser.lookahead (fun (c : Char) => (decide ('0' ≤ c) && decide (c ≤ '9')) = true) "digit" Lean.Json.Parser.natCoreNumDigits 0 0
Instances For
@[inline]
Equations
- Lean.Json.Parser.natMaybeZero = do Lean.Json.Parser.lookahead (fun (c : Char) => (decide ('0' ≤ c) && decide (c ≤ '9')) = true) "0-9" Lean.Json.Parser.natCore 0
Instances For
@[inline]
Equations
Instances For
@[inline]
Equations
- Lean.Json.Parser.nat = do let c ← Std.Internal.Parsec.peek! if (c == '0') = true then do Std.Internal.Parsec.skip pure 0 else Lean.Json.Parser.natNonZero
Instances For
@[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
Equations
- Lean.Json.Parser.num = do let res ← Lean.Json.Parser.numWithDecimals Lean.Json.Parser.exponent res
Instances For
partial def
Lean.Json.Parser.objectCore
(kvs : Lean.RBNode String fun (x : String) => Lean.Json)
:
Std.Internal.Parsec.String.Parser (Lean.RBNode String fun (x : String) => Lean.Json)
Equations
- Lean.Json.Parser.any = do Std.Internal.Parsec.String.ws let res ← Lean.Json.Parser.anyCore Std.Internal.Parsec.eof pure res
Instances For
Equations
- Lean.Json.parse s = Lean.Json.Parser.any.run s