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

      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
                  inductive Syntax.Class :
                  • Unicode : ClassUnicodeClass

                    A set of characters represented by Unicode scalar values.

                  Instances For
                    Equations
                    inductive Syntax.Look :

                    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
                          Equations
                          structure Syntax.Flags :

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

                          Instances For
                            Equations
                            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
                                inductive Syntax.Capture :

                                The high-level intermediate representation for a capturing group.

                                Instances For
                                  inductive Syntax.HirKind :

                                  The underlying kind of an arbitrary [Hir] expression.

                                  Instances For
                                    inductive Syntax.Hir :

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

                                    Instances For
                                      Equations
                                      Instances For
                                        Equations
                                        Instances For
                                          @[irreducible]
                                          def Syntax.Hir.toString (hir : Hir) (col : Nat) :
                                          Equations
                                          • One or more equations did not get rendered due to their size.
                                          Instances For
                                            @[irreducible]
                                            def 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
                                                Equations
                                                inductive Syntax.Dot :

                                                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

                                                  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