This PR adds the type `Std.Internal.Parsec.Error`, which contains the constructors `.eof` (useful for checking if parsing failed due to not having enough input and then retrying when more input arrives that is useful in the HTTP server) and `.other`, which describes other errors. It also adds documentation to many functions, along with some new functions to the `ByteArray` Parsec, such as `peekWhen?`, `octDigit`, `takeWhile`, `takeUntil`, `skipWhile`, and `skipUntil`.
35 lines
1.1 KiB
Text
35 lines
1.1 KiB
Text
/-
|
|
Copyright (c) 2024 Lean FRO, LLC. All rights reserved.
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
|
Authors: Markus Himmel
|
|
-/
|
|
module
|
|
|
|
prelude
|
|
public import Std.Data.DHashMap
|
|
public import Std.Data.HashMap
|
|
public import Std.Data.HashSet
|
|
public import Std.Data.DTreeMap
|
|
public import Std.Data.TreeMap
|
|
public import Std.Data.TreeSet
|
|
public import Std.Data.ExtDHashMap
|
|
public import Std.Data.ExtHashMap
|
|
public import Std.Data.ExtHashSet
|
|
public import Std.Data.ExtDTreeMap
|
|
public import Std.Data.ExtTreeMap
|
|
public import Std.Data.ExtTreeSet
|
|
|
|
-- The imports above only import the modules needed to work with the version which bundles
|
|
-- the well-formedness invariant, so we need to additionally import the files that deal with the
|
|
-- unbundled version
|
|
public import Std.Data.DHashMap.RawLemmas
|
|
public import Std.Data.HashMap.RawLemmas
|
|
public import Std.Data.HashSet.RawLemmas
|
|
public import Std.Data.DTreeMap.Raw
|
|
public import Std.Data.TreeMap.Raw
|
|
public import Std.Data.TreeSet.Raw
|
|
|
|
public import Std.Data.Iterators
|
|
public import Std.Data.ByteSlice
|
|
|
|
@[expose] public section
|