Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Strata/Languages/Python/PySpecPipeline.lean
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ public def combinePySpecLaurel (info : Python.PreludeInfo)
translation. -/
private def prependPrelude (coreFromLaurel : Core.Program) : Core.Program :=
let (preludeDecls, userDecls) := coreFromLaurel.decls.span (fun d => toString d.name != "FIRST_END_MARKER")
{ decls := preludeDecls ++ Python.coreOnlyFromRuntimeCorePart ++ userDecls }
let (laurelPreludeDecls, pythonPreludeDecls) := preludeDecls.span (fun d => toString d.name != "Error")
{ decls := pythonPreludeDecls ++ laurelPreludeDecls ++ Python.coreOnlyFromRuntimeCorePart ++ userDecls }

/-- Translate a combined Laurel program to Core and prepend the full
runtime prelude. Resolution errors are suppressed because PySpec
Expand Down
Loading