Feature request: `FOR / REPT ... ELSE` like Python
Open
enhancement
rgbasm
- Dominant language
- C++
- Stars
- 1.6k
- Forks
- 193
- Avg merge
- 22h 17m
- Merged PRs (30d)
- 26
Description
Like it says on the tin.
```asm
REPT 1
print "Hello "
ELSE
println "world!"
ENDR
REPT 1
BREAK
ELSE
FAIL "Not reached!"
ENDR
```
Contributor guide
Research direction
The issue does not name implementation files or tests. Start by locating the existing FOR, REPT, ELSE, BREAK, and ENDR handling in the assembler, then inspect related parser tests. Done means the shown REPT examples assemble with the expected branch behavior, including BREAK skipping the ELSE body.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100