Commit Graph
28 Commits
Author SHA1 Message Date
Nigel Tao a0bafff465 Ship as a "single file C library" 2018-07-14 08:59:36 +10:00
Nigel Tao 25a106903f Have include guards start with WUFFS_INCLUDE_GUARD 2018-06-16 08:10:22 +10:00
Nigel Tao df96e48341 Rename some #ifndef WUFFS_BASE_HEADER_H guards 2018-06-10 09:37:30 +10:00
Nigel Tao a1ed77cc35 Generate gen/c/base.c 2018-06-10 09:17:27 +10:00
Nigel Tao 06ff3d3369 Add a cformatter flag
Fixes #10
2018-04-13 13:13:07 +10:00
Nigel Tao b23c235067 Add fuzz tests 2018-02-17 14:14:38 +11:00
Nigel Tao f6159a1c95 Consistently use a and t for ast and token 2017-12-28 11:47:46 +11:00
Nigel Tao 1255b162ea Resolve used packages during type checking 2017-12-28 11:24:59 +11:00
Nigel Tao d92e90d4f0 Move func WuffsRoot to package generate 2017-12-28 11:02:49 +11:00
Nigel Tao b5d4d104e8 Generate .wuffs summary API code 2017-12-27 13:06:47 +11:00
Nigel Tao d14b56ea39 Type check built-in functions more thoroughly 2017-12-16 13:25:26 +11:00
Nigel Tao 404b149a9a Have "wuffs gen" follow use "foo" dependencies 2017-12-02 12:18:16 +11:00
Nigel Tao 024dc7f97a Rename PUFFS to WUFFS, part 11 of N 2017-11-30 18:18:40 +11:00
Nigel Tao 79a94558be Rename PUFFS to WUFFS, part 5 of N 2017-11-30 16:37:20 +11:00
Nigel Tao 0cea46531b Rename PUFFS to WUFFS, part 2 of N 2017-11-30 16:23:16 +11:00
Nigel Tao 362bb94e68 Prohibit package names such as "base". 2017-10-21 15:37:26 +11:00
Nigel Tao d4372cb5b8 Change license to Apache 2.
Also remove explicit PATENTS file. The new LICENSE file already
discusses patents.

Note that the Puffs project has not yet been publicly released.
2017-10-12 11:17:41 +11:00
Nigel Tao fdddcc8e1d Merge multiple puffs-xxx-c binaries into one. 2017-08-24 09:43:57 +10:00
Nigel Tao f7f57eaa21 Tweak the status code int32_t representation. 2017-07-06 12:27:55 +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 6e7e566232 Rename token.IDMap to token.Map. 2017-06-08 13:10:01 +10:00
Nigel Tao 30165e06df Refactor puffs-gen-c to use a contextual struct. 2017-06-01 12:57:46 +10:00
Nigel Tao d7403b8e57 Generate C structs. 2017-05-26 14:45:20 +10:00
Nigel Tao 7e18d9b549 Handle clang-format's stderr more nicely. 2017-05-26 11:23:19 +10:00
Nigel Tao ddba103284 Refactor generate.Main. 2017-05-26 11:01:39 +10:00
Nigel Tao 5d5381ea17 Generate .h files too, not just .c files. 2017-05-26 10:56:59 +10:00
Nigel Tao 090c5f057c Pipe generated C code through clang-format. 2017-05-25 12:44:45 +10:00
Nigel Tao f01f9c2fba First cut of a code generator. 2017-05-25 12:20:31 +10:00