- getInputContext : m Parser.InputContext
- getFileName : m System.FilePath
Instances
Bundle returned by the #strata term region. Carries:
program: the parsedStrata.Programwith file-global AST byte offsets, so Boole-style consumers (and any code that uses byte offsets in obligation labels or diagnostic ranges) keep their existing behavior.source: the raw snippet text between#strataand#end. Test helpers use this to build a snippet-localFileMap.basePos: byte offset in the Lean file where the snippet starts, so helpers can convert file-global pipeline diagnostics back to snippet-local positions when matching against inline annotations.baseLine/fileName: enough info for helpers to render<lean_file>:<line>:<col>in error messages so editors / quickfix lists can jump straight to the offending source.
Instances For
@[implicit_reducible]
Equations
Equations
Instances For
@[implicit_reducible]
Forward ToString to the underlying Program so #eval printing keeps
working at existing call sites.
Equations
- StrataDDM.instToStringSourcedProgram = { toString := fun (s : StrataDDM.SourcedProgram) => toString s.program }
@[implicit_reducible]
Allow SourcedProgram to be used wherever a Program is expected; the
source/positions are dropped. Removes ~200 explicit .program accessors
at consumer call sites.
Equations
- StrataDDM.instCoeSourcedProgramProgram = { coe := fun (s : StrataDDM.SourcedProgram) => s.program }
@[reducible, inline]
Instances For
@[reducible, inline]
Instances For
@[reducible, inline]
Instances For
@[reducible, inline]
Equations
Instances For
@[reducible, inline]
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[implicit_reducible]
Equations
- StrataDDM.instToExprSourcedProgram = { toExpr := StrataDDM.instToExprSourcedProgram.toExpr, toTypeExpr := Lean.Expr.const `StrataDDM.SourcedProgram [] }
@[implicit_reducible]
Equations
- One or more equations did not get rendered due to their size.
@[implicit_reducible]
Equations
- One or more equations did not get rendered due to their size.
def
StrataDDM.addDefn
(name : Lean.Name)
(type value : Lean.Expr)
(levelParams : List Lean.Name := [])
(hints : Lean.ReducibilityHints := Lean.ReducibilityHints.abbrev)
(safety : Lean.DefinitionSafety := Lean.DefinitionSafety.safe)
(all : List Lean.Name := [name])
:
Add a definition to environment and compile it.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Declare dialect and add to environment.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- StrataDDM.strataDialectCommand = StrataDDM.ExternParser.mkParser `strataDialectCommand "#dialect" "#end"
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- StrataDDM.strataProgram = StrataDDM.ExternParser.mkParser `strataProgram "#strata" "#end"
Instances For
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
Derive the package source root from a module's file path and name by
stripping one directory component per name part. For example, given
/repo/Strata/Languages/Foo.lean and module name Strata.Languages.Foo,
returns /repo.
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.