Commit Graph
29 Commits
Author SHA1 Message Date
Nigel Tao 9e50918718 Add single-quoted strings 2020-03-25 19:41:02 +11:00
Nigel Tao b40671ec84 Have wuffsfmt put underscores in long numbers 2020-02-08 18:21:29 +11:00
Nigel Tao ea54c2ea11 Add syntax support for implementing interfaces 2020-01-09 15:45:29 +11:00
Nigel Tao 931fdce475 Rename "yield foo" to "yield? foo" 2019-02-23 17:15:57 +11:00
Nigel Tao 72f99800ca Tweak wuffsfmt's struct field type indentation 2019-02-16 12:43:04 +11:00
Nigel Tao d26fa09d07 Have wuffsfmt align the "T"s in "x T" fields 2018-12-27 15:09:52 +11:00
Nigel Tao 1ceb304ad9 Have wuffsfmt align the "T"s in "var x T" blocks 2018-12-27 14:19:20 +11:00
Nigel Tao c1af1e2c82 Rename $(etc) to [etc] 2018-08-18 10:11:43 +10:00
Nigel Tao eeebd58d7b Remove token ID/Key distinction, part 11 of N 2018-04-15 17:57:10 +10:00
Nigel Tao 10b6eaebb6 Remove token ID/Key distinction, part 9 of N 2018-04-15 15:41:48 +10:00
Nigel Tao 7007682182 Remove token ID/Key distinction, part 2 of N 2018-04-15 10:58:53 +10:00
Nigel Tao afd7429e9a Remove token ID/Key distinction, part 1 of N 2018-04-15 10:41:18 +10:00
Nigel Tao f6159a1c95 Consistently use a and t for ast and token 2017-12-28 11:47:46 +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 8ee56a7911 Tweak puffsfmt'ing "iterate.8 (etc)". 2017-10-21 14:33:29 +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 6e7e566232 Rename token.IDMap to token.Map. 2017-06-08 13:10:01 +10:00
Nigel Tao 90c5f4758e Add Token.KeyFoo constants. 2017-05-18 16:04:26 +10:00
Nigel Tao 1d3ae23418 Introduce "pre" and "post" asserts. 2017-05-14 11:27:46 +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 cf8167a648 Add ByID and ByToken to token.IDMap. 2017-05-06 17:02:11 +10:00
Nigel Tao 65d6608434 Parse "struct foo(x u32)".
Also remove an obsolete TODO comment.
2017-05-05 13:51:09 +10:00
Nigel Tao 94cb8b25cb Tokenize and render comments. 2017-05-05 12:33:38 +10:00
Nigel Tao d192220c3c Don't collapse blank line after { or before }.
The original intent was to eliminate unnecessary blank lines just inside
a func body's { and }, but it also eliminated useful blank lines inside
an if-else chain.
2017-05-05 11:06:26 +10:00
Nigel Tao 5169460c2d Tweak rendering indentation of "x=y+\nz". 2017-05-04 17:38:55 +10:00
Nigel Tao a3fd737dae Tweak rendering tightness of "(", "+" and "-". 2017-05-04 15:43:00 +10:00
Nigel Tao 8a7dee5a4d Parse "f(i)". 2017-05-04 15:12:02 +10:00
Nigel Tao aebbb2b830 First cut of a renderer. 2017-04-30 16:15:16 +10:00