Documentation

Regex.Syntax.Translate

Translate #

Translate (Syntax.translate) an abstract syntax tree Syntax.Ast.Ast into a high level intermediate representation Syntax.Hir.

Translator state

  • stack : Array HirFrame

    Our call stack, but on the heap.

  • flags : Flags

    The current flag settings.

Instances For
    Equations
    Instances For
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        theorem Syntax.sizeOf_pop_concat_expr {stack' : Array HirFrame} {hir : Hir} {stack : Array HirFrame} (h : pop_concat_expr stack = Except.ok (stack', some hir)) :
        sizeOf stack' < sizeOf stack
        @[irreducible]
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            theorem Syntax.sizeOf_pop_alt_expr {stack' : Array HirFrame} {hir : Hir} {stack : Array HirFrame} (h : pop_alt_expr stack = Except.ok (stack', some hir)) :
            sizeOf stack' < sizeOf stack
            @[irreducible]
            Equations
            • One or more equations did not get rendered due to their size.
            Instances For

              This method is called on an Ast before descending into child Ast nodes.

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

                This method is called on an Ast after descending all of its child Ast nodes.

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

                  This method is called on every [ClassSetItem] before descending into child nodes.

                  Equations
                  Instances For

                    This method is called on every [ClassSetItem] after descending into child nodes.

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

                      This method is called on every [ClassSetBinaryOp] before descending into child nodes.

                      Equations
                      Instances For

                        This method is called between the left hand and right hand child nodes.

                        Equations
                        Instances For

                          This method is called on every [ClassSetBinaryOp] after descending into child nodes.

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

                            Translate the given abstract syntax tree into a high level intermediate representation.

                            Equations
                            Instances For