lean4-htt/src
Sebastian Graf 704df340cb
feat: make repeat and while syntax builtin (#13442)
This PR promotes the `repeat`, `while`, and `repeat ... until` parsers
from `syntax` declarations in `Init.While` to `@[builtin_doElem_parser]`
definitions in `Lean.Parser.Do`, alongside the other do-element parsers.
The `while` variants and `repeat ... until` get `@[builtin_macro]`
expansions; `repeat` itself gets a `@[builtin_doElem_elab]` so a
follow-up can extend it with an option-driven choice between `Loop.mk`
and a well-founded `Repeat.mk`.

The new builtin parsers are registered at `low` priority so that the
bootstrapping `syntax` declarations in `Init.While` (still needed for
stage0 compatibility) take precedence during the transition. After the
next stage0 update, the `Init.While` syntax and macros can be removed.
2026-04-17 15:19:59 +00:00
..
bin perf: separate meta and non-meta initializers (#12016) 2026-02-26 08:05:19 +00:00
cmake fix: use commondir to resolve git directory in worktrees (#13045) 2026-04-11 06:45:02 +00:00
include/lean fix: file read buffer overflow (#13392) 2026-04-13 17:56:27 +00:00
Init feat: make repeat and while syntax builtin (#13442) 2026-04-17 15:19:59 +00:00
initialize
kernel chore: fix spelling errors (#13274) 2026-04-04 07:34:34 +00:00
lake chore: enable warning.simp.varHead (#13403) 2026-04-16 16:11:09 +00:00
Lean feat: make repeat and while syntax builtin (#13442) 2026-04-17 15:19:59 +00:00
library fix: potential Array.get!Internal leaks part 2 (#13148) 2026-03-27 02:51:39 +00:00
runtime fix: two bugs in io.cpp (#13427) 2026-04-16 12:38:17 +00:00
shell chore: move test suite setup to tests/CMakeLists.txt (#12278) 2026-02-03 13:22:20 +00:00
Std feat: add instance validation checks in addInstance (#13389) 2026-04-16 17:48:16 +00:00
util feat: allow deprecating options (#13195) 2026-04-02 14:44:11 +00:00
cadical.mk
CMakeLists.txt fix: pass CMake Lake args to the Lake make build (#13410) 2026-04-14 22:07:29 +00:00
config.h.in
githash.h.in
Init.lean chore: revert "feat: add lake builtin-lint (#13422) 2026-04-15 19:28:59 +00:00
lakefile.toml.in chore: use weakLeanArgs for Lake plugin (#13335) 2026-04-09 00:02:39 +00:00
lean-toolchain chore: relative lean-toolchains (#12652) 2026-02-25 10:23:35 +00:00
Lean.lean refactor: move getOriginalConstKind? into its own module to avoid future import cycle (#12265) 2026-02-01 16:18:51 +00:00
lean.mk.in
Leanc.lean
LeanChecker.lean refactor: remove Lean.Environment.replay from core (#12972) 2026-03-18 22:11:42 +00:00
LeanIR.lean chore: fixes from #13103 "enable separate codegen" (#13241) 2026-04-02 11:13:22 +00:00
out
Std.lean
stdlib.make.in fix: pass CMake Lake args to the Lake make build (#13410) 2026-04-14 22:07:29 +00:00
stdlib_flags.h chore: consistent build flags between USE_LAKE ON and OFF (#12941) 2026-03-17 11:02:55 +00:00
version.h.in