Documentation

Regex.Syntax.Hir

High-level intermediate representation for a regular expression. #

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

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

see UInt32.isValidChar

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

                A set of characters represented by Unicode scalar values.

              Instances For
                @[implicit_reducible]
                Equations

                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
                  Equations
                  Instances For

                    A type that collects various properties of an HIR value.

                    Instances For
                      @[implicit_reducible]
                      Equations

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

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

                        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
                                    Equations
                                    Instances For
                                      Equations
                                      Instances For
                                        @[irreducible]
                                        Equations
                                        • One or more equations did not get rendered due to their size.
                                        Instances For
                                          @[irreducible]
                                          def Regex.Syntax.Hir.fold {α : Type u_1} [Inhabited α] [ToString α] (hir : Hir) (f : αHirα) (init : α) :
                                          α
                                          Equations
                                          Instances For

                                            check if an hir contains .Lookaround

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

                                              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) :
                                                Equations
                                                • One or more equations did not get rendered due to their size.
                                                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.

                                                    Equations
                                                    Instances For

                                                      Assert that the current stack frame is a repetition.

                                                      Equations
                                                      Instances For

                                                        Assert that the current stack frame is a group.

                                                        Equations
                                                        Instances For