Add endwhile syntax

This commit is contained in:
Nigel Tao committed 2020-02-22 13:11:02 +11:00
1 parent d1a4abe321
commit b1e3a15c08
9 files changed
+53 -29

No files matched your search

+1
View File
@@ -3,6 +3,7 @@
## Work In Progress
- Added `endwhile` syntax.
- Added `example/imageviewer`.
- Added `example/jsonptr`.
- Added `std/bmp`.
+2 -1
View File
@@ -31,7 +31,8 @@ Minor features or restrictions include:
an `if` or `while` condition are optional, but the `{}` curly braces are
mandatory. There is no 'dangling else' ambiguity.
- Labeled jumps look like `break.loopname` and `continue.loopname`, for a
matching `while.loopname`.
matching `while.loopname`. The `while.loopname`'s closing curly brace must be
followed by `endwhile.loopname`.
Wuffs code is formatted by the
[`wuffsfmt`](https://godoc.org/github.com/google/wuffs/cmd/wuffsfmt) program.