docs(0.S): the doc fences migrated by ludic migrate state; LANGUAGE.md's state section says what the tool and the checker do now; no module-level var left in the docs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
19fcf60599
commit
a476ec7976
79 changed files with 481 additions and 355 deletions
|
|
@ -19,10 +19,12 @@ Parameters:
|
|||
|
||||
```ludic
|
||||
program Countdown {
|
||||
var timer: int = 60
|
||||
state CountdownState {
|
||||
timer: int = 60
|
||||
}
|
||||
|
||||
handler Tick phase Update {
|
||||
timer = Math.max(timer - 1, 0) # stops at 0, never negative
|
||||
handler Tick(countdown_st: mut CountdownState) phase Update {
|
||||
countdown_st.timer = Math.max(countdown_st.timer - 1, 0) # stops at 0, never negative
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue