Documentation

SSA.Core.MLIRSyntax.Parser

@[reducible, inline]
Equations
Instances For
    @[reducible, inline]
    abbrev ParseFun {ParseOutput : Type} :
    Equations
    Instances For
      unsafe def elabIntoTermTactic {α : Type} (expectedType : Lean.Expr) (stx : Lean.Syntax) :
      Instances For
        unsafe def elabIntoTermElab {α : Type} (expectedType : Lean.Expr) (stx : Lean.Syntax) :
        Instances For
          unsafe def elabIntoMeta {α : Type} (expectedType : Lean.Expr) (stx : Lean.Syntax) :
          Instances For
            unsafe def elabIntoCore {α : Type} (expectedType : Lean.Expr) (stx : Lean.Syntax) :
            Instances For
              Equations
              Instances For
                unsafe def elabIntoEIO {α : Type} (env : Lean.Environment) (typeName : Lean.Expr) (stx : Lean.Syntax) :
                Instances For
                  Equations
                  Instances For
                    Equations
                    Instances For

                      Parse Lean.Syntax into MLIR.AST.Region.

                      This runs the Lean frontend stack and adds it to the TCB. It should be safe (if we trust the lean parser) since we ensure that the types match: see https://leanprover-community.github.io/mathlib4_docs/Std/Util/TermUnsafe.html#Std.TermUnsafe.termUnsafe_

                      Equations
                      Instances For

                        Parse Lean.Syntax into MLIR.AST.Op.

                        This runs the Lean frontend stack and adds it to the TCB. It should be safe (if we trust the lean parser) since we ensure that the types match: see https://leanprover-community.github.io/mathlib4_docs/Std/Util/TermUnsafe.html#Std.TermUnsafe.termUnsafe_

                        Equations
                        Instances For
                          def mkParseFun {ParseOutput : Type} (syntaxcat : Lean.Name) (ntparser : Lean.SyntaxEIO ParseError ParseOutput) (s : String) (env : Lean.Environment) :
                          EIO ParseError ParseOutput
                          Equations
                          Instances For
                            def regionParser :
                            ParseFun
                            Equations
                            Instances For
                              def runParser {ParseOutput : Type} (parser : ParseFun) (fileName : String) :
                              IO (Option ParseOutput)
                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For
                                def parseRegionFromFile {α : Type} (fileName : String) (regionParseFun : MLIR.AST.Region 0Except ParseError α) :
                                IO (Option α)
                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For