Commit Graph
866 Commits
Author SHA1 Message Date
Nigel Tao b6cc2d5e2d Add fuzz/c/std/seed_corpora.txt 2018-04-22 13:02:22 +10:00
Nigel Tao fd2d6e5b8a Tighten up low_bits / high_bits bounds checking 2018-04-21 15:44:12 +10:00
Nigel Tao 8d05db48a4 Remove some hard coded bcheckExprOther checks 2018-04-21 08:45:59 +10:00
Nigel Tao 351fa593c6 Rename some files as std/foo/common_bar.wuffs 2018-04-20 17:30:52 +10:00
Nigel Tao c479907bff Remove typeExprPlaceholder 2018-04-20 17:16:23 +10:00
Nigel Tao ba0db5b4d1 Remove some hard coded bcheckExprOther checks 2018-04-20 17:03:29 +10:00
Nigel Tao 4ddc2f0055 Make an ast.TypeExpr's ID0 field more consistent 2018-04-20 16:21:16 +10:00
Nigel Tao 90a794c0b8 Remove some hard coded bcheckExprOther checks 2018-04-20 14:19:41 +10:00
Nigel Tao bbe3eef04b Clarify a method TypeExpr's string form 2018-04-20 14:19:09 +10:00
Nigel Tao 7c7ca4c723 Add range/rect is_empty/intersection/union methods 2018-04-20 13:30:53 +10:00
Nigel Tao 24c906bd52 Add some more sat_add and sat_sub methods 2018-04-17 10:59:21 +10:00
Nigel Tao 9c2330e6fd Break cgen's generated data into chapters
This will hopefully lessen the diff of subsequent changes.
2018-04-17 10:57:08 +10:00
Nigel Tao 6656b6e5e9 Tighten some more ast.TypeExpr methods 2018-04-16 08:19:54 +10:00
Nigel Tao 6c6a647cab Tighten the ast.TypeExpr IsNumType methods 2018-04-15 18:33:25 +10:00
Nigel Tao c7ee2c1be8 Tighten the token.ID's XxxForm methods 2018-04-15 18:26:02 +10:00
Nigel Tao c9161bafaf Simplify token.builtInsByID 2018-04-15 18:15:56 +10:00
Nigel Tao e2716e4365 Re-organize the token ID space 2018-04-15 18:12:00 +10:00
Nigel Tao 0395f8de45 Make IDDoubleZ an ident 2018-04-15 17:58:58 +10:00
Nigel Tao eeebd58d7b Remove token ID/Key distinction, part 11 of N 2018-04-15 17:57:10 +10:00
Nigel Tao b24a929ec7 Remove token ID/Key distinction, part 10 of N 2018-04-15 15:44:31 +10:00
Nigel Tao 10b6eaebb6 Remove token ID/Key distinction, part 9 of N 2018-04-15 15:41:48 +10:00
Nigel Tao 1717d5befd Remove token ID/Key distinction, part 8 of N 2018-04-15 15:22:09 +10:00
Nigel Tao 81e02e7db6 Remove token ID/Key distinction, part 7 of N 2018-04-15 15:15:56 +10:00
Nigel Tao 5c48c84cae Remove token ID/Key distinction, part 6 of N 2018-04-15 11:41:40 +10:00
Nigel Tao 8b51d09aa9 Remove token ID/Key distinction, part 5 of N 2018-04-15 11:27:18 +10:00
Nigel Tao af263fa26e Remove token ID/Key distinction, part 4 of N 2018-04-15 11:05:43 +10:00
Nigel Tao 19d76bc61d Remove token ID/Key distinction, part 3 of N 2018-04-15 11:01:41 +10:00
Nigel Tao 7007682182 Remove token ID/Key distinction, part 2 of N 2018-04-15 10:58:53 +10:00
Nigel Tao afd7429e9a Remove token ID/Key distinction, part 1 of N 2018-04-15 10:41:18 +10:00
Nigel Tao 06ff3d3369 Add a cformatter flag
Fixes #10
2018-04-13 13:13:07 +10:00
Nigel Tao 9254d6746b Remove an obsolete TODO re a "~as" operator 2018-04-12 22:26:34 +10:00
Nigel Tao 62bbfe9915 Update comment for the __WORDSIZE constraint
Wuffs-the-language doesn't have an analog to C's size_t, so the previous
comment about "u32" and especially "usize" is obsolete.
2018-04-12 22:08:38 +10:00
Nigel Tao f95239f6e0 Rename u32, io_reader, etc to base.u32, etc 2018-04-12 21:49:17 +10:00
Nigel Tao fee97df698 Add range_ii, range_ie types and sat arithmetic 2018-04-12 19:11:40 +10:00
Nigel Tao e4c4f5ce62 Rename iterate.N to iterate[N] 2018-04-05 22:32:15 +10:00
Nigel Tao d33db6dae0 Introduce "array[N] T" and "slice T" type syntax 2018-04-05 22:21:08 +10:00
Nigel Tao 2b91e7861c Prepare array and slice tokens 2018-04-05 21:51:38 +10:00
Nigel Tao 97aab37462 Rename buf1, reader1, etc to io_buffer, io_reader
Also remove the unused Buf1, Buf2 and Usize tokens.
2018-04-05 20:49:48 +10:00
Nigel Tao 82a48796c8 Add pixel_format, image_buffer, etc. definitions 2018-04-05 17:09:33 +10:00
Nigel Tao e700bcd4f8 Bounds check consts by value, not type
This lets us prove "c == 123" given "pri const c u32 = 123".

Fixes #5
2018-03-31 16:43:53 +11:00
Nigel Tao 911977228d Allow expr's, not just literals, as const RHS's
This allows "1 << 10", not just "1024", in "pri const k u32 = 1 << 10".

Fixes #6
2018-03-31 15:51:15 +11:00
Nigel Tao a875a06799 Remove an obsolete TODO 2018-03-31 14:17:04 +11:00
Nigel Tao 62ad97745f Delete obsolete example/peterface 2018-03-28 13:52:27 +11:00
Nigel Tao 707965488c Add example/zcat 2018-03-28 13:51:01 +11:00
Nigel Tao ef899b0492 Make gzip checksum check length, not just CRC32 2018-03-28 12:36:31 +11:00
Nigel Tao a8e40fedc9 Implement the gzip checksum
Also fix a bug in ast.Raw.SetPackage, discovered because type checking
failed to show that "[] u8" and "[] u8" are equivalent types.
2018-03-28 12:30:00 +11:00
Nigel Tao 153d1276a1 Read checksum bytes even if ignoring its value 2018-03-28 11:21:03 +11:00
Nigel Tao 72449fa0ec Rename checksum fields and variables 2018-03-28 11:15:13 +11:00
Nigel Tao 86d0ade206 Implement gzip decode 2018-03-28 11:10:51 +11:00
Nigel Tao a26e365992 Fix a filename copy-pasto 2018-03-28 10:56:00 +11:00