Nigel Tao
f23a80820c
Remove some redundant cmd/puffs/gen.go code.
2017-06-18 09:26:30 +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
1c2ccee966
Put "std" in the "gen/c/std/gif.c" filename.
2017-06-16 11:32:39 +10:00
Nigel Tao
70612df43a
Re-organize test/c code.
2017-06-16 10:47:54 +10:00
Nigel Tao
6e7e566232
Rename token.IDMap to token.Map.
2017-06-08 13:10:01 +10:00
Nigel Tao
1b4590d878
Remove puffs-gen-h as a separate executable.
...
The .h file is already a prefix of the .c file. We already call
puffs-gen-c and can truncate its output.
2017-06-01 10:33:42 +10:00
Nigel Tao
0819a42ab8
Update puffs usage message.
2017-05-27 10:24:32 +10:00
Nigel Tao
a1dd73a58c
Generate C status codes.
2017-05-26 15:53:41 +10:00
Nigel Tao
d7403b8e57
Generate C structs.
2017-05-26 14:45:20 +10:00
Nigel Tao
5d5381ea17
Generate .h files too, not just .c files.
2017-05-26 10:56:59 +10:00
Nigel Tao
6e7decbf3b
Add "puffs test" to the puffs tool.
2017-05-25 19:02:15 +10:00
Nigel Tao
fb6f9bbe4b
Don't overwrite an unchanged generated file.
2017-05-25 17:17:26 +10:00
Nigel Tao
3663708405
First cut of the puffs tool: "puffs gen".
2017-05-25 15:33:58 +10:00