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