Nigel Tao
|
930ff53ff6
|
Add cmd/puffs-gen-c/base-impl.h.
Also rename preamble.h to base-header.h.
|
2017-06-01 11:02:43 +10:00 |
|
Nigel Tao
|
1841ed8a36
|
Add an PUFFS_BASE_H include guard.
|
2017-06-01 10:49:01 +10:00 |
|
Nigel Tao
|
4c7aa62821
|
Refactor some puffs-gen-c code.
|
2017-06-01 10:42:39 +10:00 |
|
Nigel Tao
|
c195c2362e
|
Remove the cmd/internal/cgen package.
There's no longer separate .c and .h generator executables, so there's
no need for an (internal) package for common code.
|
2017-06-01 10:39:46 +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
|
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
|
3642dd3d0e
|
Check that __WORDSIZE is at least 32 bits.
|
2017-05-26 09:23:55 +10:00 |
|
Nigel Tao
|
3f79592b9a
|
Add a comment about running "go generate".
|
2017-05-26 09:16:00 +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 |
|