Generate C break's and continue's.

This commit is contained in:
Nigel Tao committed 2017-06-01 15:25:01 +10:00
1 parent 2ed019b670
commit bcf6a7ee1d
6 files changed
+115 -24

No files matched your search

+11 -6
View File
@@ -17,11 +17,16 @@ pub func lzw_decoder.decode?(dst ptr io.buf1, src ptr io.buf1, src_final bool)()
// TODO: implement.
while n_bits < width,
post n_bits >= width,
{
assert n_bits < 12 via "a < b: a < c <= b"(c:width)
bits |= 0 // TODO.
n_bits += 8
while true {
while n_bits < width,
post n_bits >= width,
{
assert n_bits < 12 via "a < b: a < c <= b"(c:width)
bits |= 0 // TODO.
n_bits += 8
}
// TODO: implement.
break
}
}