Documentation

Std.Internal.Parsec.String

@[reducible, inline]

Parser α is a parser that consumes a String input using a Sigma String.Pos and returns a result of type α.

Instances For

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

    Instances For

      Parses the given string.

      Instances For
        @[inline]

        Skips the given string.

        Instances For
          @[inline]

          Parses the given char.

          Instances For
            @[inline]

            Skips the given char.

            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 ASCII letter a-z or A-Z as a Char.

                    Instances For
                      @[inline]

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

                      Instances For

                        Takes a fixed amount of chars from the iterator.

                        Instances For