Documentation

StrataDDM.Elab

Instances For
    def StrataDDM.Elab.elabHeader (leanEnv : Lean.Environment) (inputContext : Parser.InputContext) (startPos : String.Pos.Raw := 0) (stopPos : String.Pos.Raw := inputContext.endPos) :
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      def StrataDDM.Elab.elabProgramRest (loader : LoadedDialects) (leanEnv : Lean.Environment) (inputContext : Parser.InputContext) (dialect : DialectName) (known : dialect loader.dialects) (startPos : String.Pos.Raw) (stopPos : String.Pos.Raw := inputContext.endPos) :
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        def StrataDDM.Elab.elabProgram (loader : LoadedDialects) (leanEnv : Lean.Environment) (inputContext : Parser.InputContext) (startPos : String.Pos.Raw := 0) (stopPos : String.Pos.Raw := inputContext.endPos) :
        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
            partial def StrataDDM.Elab.elabDialectRest (fm : DialectFileMap) (inputContext : Parser.InputContext) (loc : SourceRange) (dialect : DialectName) (stk : Array DialectName := #[]) (startPos : String.Pos.Raw := 0) (stopPos : String.Pos.Raw := inputContext.endPos) :

            Elaborate a dialect after the initial header with the name of dialect has been processed.

            Use fm to ensure dialect and all of its imports are loaded into ld.

            This always returns a new loaded dialect map as some imports may be loaded successfully before a failure. It returns either an error message as a string or a dialect.

            N.B. We may need to amend the error message in the future to provide more structure (such as error location information).

            Equations
            Instances For

              Load a dialect from a file, using actualPath for reading and path for error reporting. Returns the loaded dialect or an array of error messages.

              Equations
              Instances For
                def StrataDDM.Elab.elabDialect (fm : DialectFileMap) (inputContext : Parser.InputContext) (startPos : String.Pos.Raw := 0) (stopPos : String.Pos.Raw := inputContext.endPos) :
                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

                    Parse a single syntax category from a loaded dialect set.

                    Unlike parseStrataProgramFromDialect, this targets a specific syntax category (e.g. q\SMTResponse.GetValueResponse) rather than parsing a full program of Command`s. This avoids ambiguity issues that arise when multiple categories share the same surface syntax.

                    Returns the elaborated Operation on success.

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