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
|
|
@ -13,12 +13,14 @@ order: 10
|
|||
|
||||
```ludic
|
||||
program SumOdds {
|
||||
var total: int = 0
|
||||
state SumOddsState {
|
||||
total: int = 0
|
||||
}
|
||||
|
||||
handler Add phase Update {
|
||||
handler Add(sum_odds_st: mut SumOddsState) phase Update {
|
||||
for i in 0 .. 10 {
|
||||
if i % 2 == 0 { continue } # skip even numbers
|
||||
total = total + i
|
||||
sum_odds_st.total = sum_odds_st.total + i
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue