Documentation

Parser.Char.Basic

@[inline]
def Parser.Char.char {ε σ : Type} {m : TypeType u_1} [Parser.Stream σ Char] [Parser.Error ε σ Char] [Monad m] (tk : Char) :
ParserT ε σ Char m Char

char tk accepts and returns character tk, otherwise fails

Equations
Instances For
    def Parser.Char.chars {ε σ : Type} {m : TypeType u_1} [Parser.Stream σ Char] [Parser.Error ε σ Char] [Monad m] (tks : String) :

    chars tks accepts and returns string tks, otherwise fails

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

      string tks accepts and returns string tks, otherwise fails

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        def Parser.Char.captureStr {ε : Type} {m : TypeType u_1} [Monad m] {α : Type} [Parser.Error ε Substring Char] (p : ParserT ε Substring Char m α) :

        captureStr p parses p and returns the output of p with the corresponding substring

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

          matchStr re accepts and returns substring matches for regex re groups, otherwise fails

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            @[inline]
            def Parser.Char.space {ε σ : Type} {m : TypeType u_1} [Parser.Stream σ Char] [Parser.Error ε σ Char] [Monad m] :
            ParserT ε σ Char m Char

            Parse space (U+0020)

            Equations
            Instances For
              @[inline]
              def Parser.Char.tab {ε σ : Type} {m : TypeType u_1} [Parser.Stream σ Char] [Parser.Error ε σ Char] [Monad m] :
              ParserT ε σ Char m Char

              Parse horizontal tab (U+0009)

              Equations
              Instances For
                @[inline]
                def Parser.Char.ASCII.lf {ε σ : Type} {m : TypeType u_1} [Parser.Stream σ Char] [Parser.Error ε σ Char] [Monad m] :
                ParserT ε σ Char m Char

                Parse line feed (U+000A)

                Equations
                Instances For
                  @[inline]
                  def Parser.Char.ASCII.cr {ε σ : Type} {m : TypeType u_1} [Parser.Stream σ Char] [Parser.Error ε σ Char] [Monad m] :
                  ParserT ε σ Char m Char

                  Parse carriage return (U+000D)

                  Equations
                  Instances For
                    @[inline]
                    def Parser.Char.eol {ε σ : Type} {m : TypeType u_1} [Parser.Stream σ Char] [Parser.Error ε σ Char] [Monad m] :
                    ParserT ε σ Char m Char

                    Parse end of line

                    Equations
                    Instances For
                      def Parser.Char.ASCII.whitespace {ε σ : Type} {m : TypeType u_1} [Parser.Stream σ Char] [Parser.Error ε σ Char] [Monad m] :
                      ParserT ε σ Char m Char

                      Parse whitespace character

                      Equations
                      Instances For
                        def Parser.Char.ASCII.uppercase {ε σ : Type} {m : TypeType u_1} [Parser.Stream σ Char] [Parser.Error ε σ Char] [Monad m] :
                        ParserT ε σ Char m Char

                        Parse uppercase letter character (A..Z)

                        Equations
                        Instances For
                          def Parser.Char.ASCII.lowercase {ε σ : Type} {m : TypeType u_1} [Parser.Stream σ Char] [Parser.Error ε σ Char] [Monad m] :
                          ParserT ε σ Char m Char

                          Parse lowercase letter character (a..z)

                          Equations
                          Instances For
                            def Parser.Char.ASCII.alpha {ε σ : Type} {m : TypeType u_1} [Parser.Stream σ Char] [Parser.Error ε σ Char] [Monad m] :
                            ParserT ε σ Char m Char

                            Parse alphabetic character (A..Z and a..z)

                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For
                              def Parser.Char.ASCII.numeric {ε σ : Type} {m : TypeType u_1} [Parser.Stream σ Char] [Parser.Error ε σ Char] [Monad m] :
                              ParserT ε σ Char m Char

                              Parse numeric character (0..9)

                              Equations
                              Instances For
                                def Parser.Char.ASCII.alphanum {ε σ : Type} {m : TypeType u_1} [Parser.Stream σ Char] [Parser.Error ε σ Char] [Monad m] :
                                ParserT ε σ Char m Char

                                Parse alphabetic letter or digit (A..Z, a..z and 0..9)

                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For
                                  def Parser.Char.ASCII.control {ε σ : Type} {m : TypeType u_1} [Parser.Stream σ Char] [Parser.Error ε σ Char] [Monad m] :
                                  ParserT ε σ Char m Char

                                  Parse control character

                                  Equations
                                  Instances For
                                    def Parser.Char.ASCII.digit {ε σ : Type} {m : TypeType u_1} [Parser.Stream σ Char] [Parser.Error ε σ Char] [Monad m] :
                                    ParserT ε σ Char m (Fin 10)

                                    Parse decimal digit (0-9)

                                    Equations
                                    • One or more equations did not get rendered due to their size.
                                    Instances For
                                      def Parser.Char.ASCII.binDigit {ε σ : Type} {m : TypeType u_1} [Parser.Stream σ Char] [Parser.Error ε σ Char] [Monad m] :
                                      ParserT ε σ Char m (Fin 2)

                                      Parse binary digit (0..1)

                                      Equations
                                      • One or more equations did not get rendered due to their size.
                                      Instances For
                                        def Parser.Char.ASCII.octDigit {ε σ : Type} {m : TypeType u_1} [Parser.Stream σ Char] [Parser.Error ε σ Char] [Monad m] :
                                        ParserT ε σ Char m (Fin 8)

                                        Parse octal digit (0..7)

                                        Equations
                                        • One or more equations did not get rendered due to their size.
                                        Instances For
                                          def Parser.Char.ASCII.hexDigit {ε σ : Type} {m : TypeType u_1} [Parser.Stream σ Char] [Parser.Error ε σ Char] [Monad m] :
                                          ParserT ε σ Char m (Fin 16)

                                          Parse hexadecimal digit (0..9, A..F and a..f)

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