Documentation

Regex.Syntax.Hir

High-level intermediate representation for a regular expression. #

A high-level intermediate representation Syntax.Hir for a regular expression.

@[reducible, inline]
Instances For
    @[instance_reducible]

    see UInt32.isValidChar

    • Unicode : ClassUnicode → Class

      A set of characters represented by Unicode scalar values.

    Instances For
      @[instance_reducible]

      The high-level intermediate representation for a look-around assertion.

      • Start : Look

        Match the beginning of text.

      • End : Look

        Match the end of text.

      • EndWithOptionalLF : Look

        Match the end of text (before optional newline).

      • StartLF : Look

        Match the beginning of a line or the beginning of text.

      • EndLF : Look

        Match the end of a line or the end of text.

      • StartCRLF : Look

        Match the beginning of a line or the beginning of text.

      • EndCRLF : Look

        Match the end of a line or the end of text.

      • WordUnicode : Look

        Match a Unicode-aware word boundary.

      • WordUnicodeNegate : Look

        Match a Unicode-aware negation of a word boundary.

      • WordStartUnicode : Look

        Match the start of a Unicode word boundary.

      • WordEndUnicode : Look

        Match the end of a Unicode word boundary.

      • WordStartHalfUnicode : Look

        Match the start half of a Unicode word boundary.

      • WordEndHalfUnicode : Look

        Match the end half of a Unicode word boundary.

      • PreviousMatch : Look

        Match the end of the previous match or start of string.

      • ClearMatches : Look

        Clear all matches.

      Instances For
        @[instance_reducible]
        @[instance_reducible]

        A type that collects various properties of an HIR value.

        Instances For

          A translator's representation of a regular expression's flags at any given moment in time.

          Instances For
            @[instance_reducible]

            The high-level intermediate representation for a look-around assertion.

            Instances For

              A concatenation of regular expressions.

              Instances For

                The high-level intermediate representation for a capturing group.

                Instances For
                  Instances For

                    The underlying kind of an arbitrary [Hir] expression.

                    Instances For

                      A high-level intermediate representation (HIR) for a regular expression.

                      Instances For
                        @[instance_reducible]
                        Instances For
                          @[irreducible]
                          Instances For
                            @[irreducible]
                            def Regex.Syntax.Hir.fold {α : Type u_1} [Inhabited α] [ToString α] (hir : Hir) (f : α → Hir → α) (init : α) :
                            α
                            Instances For

                              check if an hir contains .Lookaround

                              Instances For
                                @[instance_reducible]

                                A type describing the different flavors of ..

                                • AnyChar : Dot

                                  Matches the UTF-8 encoding of any Unicode scalar value. This is equivalent to (?su:.) and also \p{any}.

                                • AnyCharExceptLF : Dot

                                  Matches the UTF-8 encoding of any Unicode scalar value except for \n. This is equivalent to (?u-s:.) and also [\p{any}--\n].

                                • AnyCharExceptCRLF : Dot

                                  Matches the UTF-8 encoding of any Unicode scalar value except for \r and \n. This is equivalent to (?uR-s:.) and also [\p{any}--\r\n].

                                Instances For
                                  def Regex.Syntax.dot (dot : Dot) :
                                  Instances For

                                    An HirFrame is a single stack frame, represented explicitly, which is created for each item in the Ast that we traverse.

                                    Instances For

                                      Assert that the current stack frame is a Unicode class expression and return it.

                                      Instances For

                                        Assert that the current stack frame is a repetition.

                                        Instances For

                                          Assert that the current stack frame is a group.

                                          Instances For