Documentation

Std.Internal.Parsec.ByteArray

@[reducible, inline]

Parser α is a parser that consumes a ByteArray input using a ByteArray.Iterator and returns a result of type α.

Instances For

    Run a Parser on a ByteArray, returns either the result or an error string with offset.

    Instances For
      @[inline]

      Parse a single byte equal to b, fails if different.

      Instances For
        @[inline]

        Skip a single byte equal to b, fails if different.

        Instances For

          Skip a sequence of bytes equal to the given ByteArray.

          Instances For
            @[inline]

            Parse a string by matching its UTF-8 bytes, returns the string on success.

            Instances For
              @[inline]

              Skip a string by matching its UTF-8 bytes.

              Instances For
                @[inline]

                Parse a Char that can be represented in 1 byte. If c uses more than 1 byte it is truncated.

                Instances For
                  @[inline]

                  Skip a Char that can be represented in 1 byte. If c uses more than 1 byte it is truncated.

                  Instances For
                    @[inline]

                    Parse an ASCII digit 0-9 as a Char.

                    Instances For
                      @[inline]

                      Parse one or more ASCII digits into a Nat.

                      Instances For
                        @[inline]

                        Parse a hex digit 0-9, a-f, or A-F as a Char.

                        Instances For
                          @[inline]

                          Parse an octal digit 0-7 as a Char.

                          Instances For
                            @[inline]

                            Parse an ASCII letter a-z or A-Z as a Char.

                            Instances For
                              @[inline]

                              Skip whitespace: tabs, newlines, carriage returns, and spaces.

                              Instances For

                                Parse n bytes from the input into a ByteSlice, errors if not enough bytes.

                                Instances For
                                  @[inline]

                                  Parses while a predicate is satisfied.

                                  Instances For
                                    @[inline]

                                    Parses until a predicate is satisfied (exclusive).

                                    Instances For
                                      @[inline]

                                      Skips while a predicate is satisfied.

                                      Instances For
                                        @[inline]

                                        Skips until a predicate is satisfied.

                                        Instances For
                                          @[inline]

                                          Parses while a predicate is satisfied, up to a given limit.

                                          Instances For
                                            @[inline]

                                            Parses while a predicate is satisfied, up to a given limit, requiring at least one byte.

                                            Instances For
                                              @[inline]

                                              Parses until a predicate is satisfied (exclusive), up to a given limit.

                                              Instances For
                                                @[inline]

                                                Skips while a predicate is satisfied, up to a given limit.

                                                Instances For
                                                  @[inline]

                                                  Skips until a predicate is satisfied, up to a given limit.

                                                  Instances For