Documentation

Std.Internal.Parsec.ByteArray

Equations
  • One or more equations did not get rendered due to their size.
@[reducible, inline]

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

Equations
Instances For

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

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      @[inline]

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

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        @[inline]

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

        Equations
        Instances For

          Skip a sequence of bytes equal to the given ByteArray.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            @[inline]

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

            Equations
            Instances For
              @[inline]

              Skip a string by matching its UTF-8 bytes.

              Equations
              Instances For
                @[inline]

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

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  @[inline]

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

                  Equations
                  Instances For
                    @[inline]

                    Parse an ASCII digit 0-9 as a Char.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      @[inline]

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

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        @[inline]

                        Parse an octal digit 0-7 as a Char.

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For
                          @[inline]

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

                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For
                            @[inline]

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

                            Equations
                            Instances For

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

                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For
                                @[inline]

                                Parses while a predicate is satisfied.

                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For
                                  @[inline]

                                  Parses until a predicate is satisfied (exclusive).

                                  Equations
                                  Instances For
                                    @[inline]

                                    Skips until a predicate is satisfied.

                                    Equations
                                    Instances For
                                      @[inline]

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

                                      Equations
                                      • One or more equations did not get rendered due to their size.
                                      Instances For
                                        @[inline]

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

                                        Equations
                                        • One or more equations did not get rendered due to their size.
                                        Instances For
                                          @[inline]

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

                                          Equations
                                          Instances For
                                            @[inline]

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

                                            Equations
                                            Instances For
                                              @[inline]

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

                                              Equations
                                              Instances For