Documentation

ParseIt.Prelude

Prelude: universe polymorphic basic types #

Parsers in Type u return results in Type u, so combinators that would return Unit, Bool or Nat return Unitᵤ, Boolᵤ or Natᵤ instead. These coerce to Bool and Nat, and their Repr instances print the same as Bool and Nat.

@[reducible, inline]

Unit in any universe.

Instances For
    inductive ParseIt.Boolᵤ :

    Bool in any universe.

    Instances For

      Convert to Bool.

      Instances For

        Convert from Bool.

        Instances For
          @[instance_reducible]
          @[instance_reducible]
          @[instance_reducible]
          structure ParseIt.Natᵤ :

          Nat in any universe.

          • val : Nat

            The underlying natural number.

          Instances For
            def ParseIt.instDecidableEqNatᵤ.decEq (x✝ x✝¹ : Natᵤ) :
            Decidable (x✝ = x✝¹)
            Instances For
              @[instance_reducible]
              @[instance_reducible]
              @[instance_reducible]
              @[instance_reducible]
              @[instance_reducible]