Nigel Tao
ed8a91ef51
Add an array.copy_from method.
2017-09-22 16:32:11 +10:00
Nigel Tao
569e800bac
Refactor internal funcs like isDecode, isLength.
2017-09-22 15:20:46 +10:00
Nigel Tao
2fb9972bb9
Add a slice.suffix method.
2017-09-22 14:12:54 +10:00
Nigel Tao
51f2b183a2
Add a slice.length method.
2017-09-22 12:37:07 +10:00
Nigel Tao
18e32d61e5
Add a writer1.slice method.
2017-09-22 11:54:24 +10:00
Nigel Tao
519ec373f2
First cut at a "[] u8" slice type.
2017-09-08 16:53:59 +10:00
Nigel Tao
0f86add17e
Add a status.is_suspension method.
2017-09-02 09:40:39 +10:00
Nigel Tao
935cd73686
Add a "status" type and "try" keyword.
2017-09-01 16:41:42 +10:00
Nigel Tao
209178a2c6
Add a std/flate decode_blocks method.
2017-08-31 11:16:23 +10:00
Nigel Tao
b3710e583f
Add a zlib decoder to std/flate.
2017-08-05 16:34:03 +10:00
Nigel Tao
7cf7829c9e
Implement std/flate Huffman table redirects.
2017-07-29 16:25:00 +10:00
Nigel Tao
bfbcae4365
Decode std/flate fixed Huffman tables.
2017-07-28 13:28:31 +10:00
Nigel Tao
d2aca16f3c
Add a copy_history32 method.
2017-07-28 11:25:03 +10:00
Nigel Tao
9e03aeabe0
Refactor std/flate's decoder.decode.
2017-07-28 09:04:34 +10:00
Nigel Tao
89d4f68036
Fill array-of-u32 Huffman table for base+extra.
2017-07-27 17:20:31 +10:00
Nigel Tao
bf51551eda
Have init_huff take a slice of the code_lengths.
2017-07-27 14:42:26 +10:00
Nigel Tao
e1be6d9582
Type and bounds check "x | y | z".
2017-07-27 13:07:10 +10:00
Nigel Tao
eee67e083d
Add array-of-u32 Huffman decoder.
2017-07-27 11:30:43 +10:00
Nigel Tao
59320a07d0
Rename "go generate"d files to be data.go.
2017-07-22 17:57:41 +10:00
Nigel Tao
9933c971a2
Factor out a evalConstValueBinaryOp function.
2017-07-22 13:55:39 +10:00
Nigel Tao
dec234779e
Generate lang/check/reason.go.
2017-07-22 12:49:00 +10:00
Nigel Tao
61b771a418
Refactor the bounds checker's list of reasons.
2017-07-22 10:24:48 +10:00
Nigel Tao
389d9bc8bf
Remove the placeholder code limit count.
2017-07-22 10:14:50 +10:00
Nigel Tao
fd07fa1f27
Decode flate's clcode symbols.
2017-07-21 17:47:58 +10:00
Nigel Tao
74400247f2
Refactor std/flate's decoder.decode_dynamic.
2017-07-21 16:16:09 +10:00
Nigel Tao
f7fb991619
Implement init_huffman.
2017-07-21 15:55:49 +10:00
Nigel Tao
02cd837d9d
Add a huffman_decoder.consts field.
2017-07-21 11:48:15 +10:00
Nigel Tao
34198f3de5
Start the init_huffman implementation.
2017-07-21 11:00:56 +10:00
Nigel Tao
20f37a6dab
Decode flate code length code lengths.
2017-07-16 12:51:44 +10:00
Nigel Tao
b78807d60a
Add the "const" keyword.
2017-07-16 12:02:12 +10:00
Nigel Tao
7b7dca4767
Start a flate decoder.decode_dynamic method.
2017-07-14 16:36:51 +10:00
Nigel Tao
368bd5e4f7
Add a read_u32le method.
2017-07-13 16:20:59 +10:00
Nigel Tao
7e9b3aab67
Add a high_bits method.
2017-07-13 13:23:01 +10:00
Nigel Tao
6a34375cb3
Decode flate stored blocks.
2017-07-07 15:08:40 +10:00
Nigel Tao
17b518376f
Add a packageid keyword.
2017-07-06 11:17:15 +10:00
Nigel Tao
7a3ddbc025
Add a "limit" keyword.
2017-06-22 17:32:56 +10:00
Nigel Tao
1d39b1e173
Add a dst argument to std/gif's decoder.decode_id.
2017-06-22 15:41:10 +10:00
Nigel Tao
f857d777ee
Type check "var x T0 = y as T1".
2017-06-22 15:31:55 +10:00
Nigel Tao
497a8776c2
Generate C code for "this.lzw.set_literal_width".
2017-06-22 14:56:29 +10:00
Nigel Tao
93ca2f7496
Fix otherHandSide copy/pasto.
...
The reverse of "x < y" is "y > x", not "y >= x".
2017-06-22 14:38:42 +10:00
Nigel Tao
657560d22b
Don't add "lhs == rhs" as a fact if impure.
2017-06-22 13:57:50 +10:00
Nigel Tao
cc3c214f1e
Apply De Morgan's law for "not (a or b)".
2017-06-22 13:53:31 +10:00
Nigel Tao
1a42706bf1
Add a reader1.skip32 method.
2017-06-22 13:09:53 +10:00
Nigel Tao
8134c89786
Decode the rest of a GIF.
...
Passing an Image Descriptor's block data payload to the LZW decoder is
still a TODO.
2017-06-22 11:25:07 +10:00
Nigel Tao
17e47fbc1e
Add reader1 and writer1 base types.
2017-06-18 11:50:34 +10:00
Nigel Tao
d16a25806f
Decode a GIF's Global Color Table.
2017-06-18 11:11:10 +10:00
Nigel Tao
8d1bf15d70
Add a decoder.decode_lsd skeleton.
2017-06-18 09:45:09 +10:00
Nigel Tao
6904068251
Remove check.FlagsOnlyTypeCheck.
...
The puffs-gen-foo commands might need to bounds check anyway, to e.g.
generate different code paths depending on whether a u64 typed
expression fits in a usize's range.
2017-06-18 09:17:58 +10:00
Nigel Tao
ae20422754
Check for field and method name collisions.
2017-06-18 09:10:17 +10:00
Nigel Tao
cd526ccafe
Generate C code for "self.foo?()".
2017-06-16 15:38:40 +10:00