Commit Graph
870 Commits
Author SHA1 Message Date
Nigel Tao a9bb43229a Add PUFFS_VERSION. 2017-05-27 09:59:55 +10:00
Nigel Tao cc9aeb63c1 Generate extern "C" in the .c, not just the .h. 2017-05-27 09:24:31 +10:00
Nigel Tao 71a3ad6563 Tweak the test output. 2017-05-27 09:18:59 +10:00
Nigel Tao ca9fba83c5 Generate C constructors and destructors. 2017-05-26 16:32:30 +10:00
Nigel Tao a1dd73a58c Generate C status codes. 2017-05-26 15:53:41 +10:00
Nigel Tao 371abbde2e Add comments about the minimum __WORDSIZE. 2017-05-26 14:51:48 +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 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 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
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
Nigel Tao 54567dbd47 Rename ParseFile, RenderFile to Parse, Render.
Also make various funcs' arg order consist wrt the IDMap and the input
or inputs.
2017-05-11 09:48:01 +10:00
Nigel Tao 80a6e79cf8 Add a puffsfmt doc comment. 2017-05-06 11:15:59 +10:00
Nigel Tao 7a43d3df80 Add a puffsfmt command. 2017-05-05 17:54:07 +10:00