Hojun-Cho
96cf957b07
lib/ww/lex: fputq + tokprint if-ladders -> switch (Wave-2 structural)
fputq: 6-deep escape if/else -> switch (c); named escapes \\ " \n \t \r
as explicit cases, empty-label default folds the control-char arms into
(c<' '||c==127)->fputhex2 else fputcbyte, mirroring cmd/wcc/tok.c:172.
tokprint: 4-deep kind if-ladder -> switch (t.kind) with comma-cases
(IDENT,STR,ERR -> fputq; INT,RUNE -> u64tos; default -> nothing),
mirroring tok.c:194.
toktest gains @test tokprint_cases: drives tokprint over a temp fd and
packs every fputq escape (\\ " \n \t \r, c<0x20, c==0x7f, printable)
into a TK_STR text — branches 990_selfhost's corpus never reaches.
w6c + wwdump combined.ww regenerated.
2026-06-03 00:59:13 +09:00
..
2026-06-02 19:24:40 +09:00
2026-05-30 03:24:23 +09:00
2026-06-01 15:41:10 +09:00
2026-05-18 18:25:36 +09:00
2026-06-02 09:52:29 +09:00
2026-05-18 18:25:36 +09:00
2026-06-02 21:02:26 +09:00
2026-05-18 18:25:36 +09:00
2026-06-02 22:57:37 +09:00
2026-06-02 20:21:42 +09:00
2026-06-02 19:24:40 +09:00
2026-05-20 02:02:28 +09:00
2026-06-02 09:44:38 +09:00
2026-05-31 17:30:55 +09:00
2026-06-02 21:14:51 +09:00
2026-06-02 21:14:51 +09:00
2026-05-30 03:24:23 +09:00
2026-05-18 18:25:36 +09:00
2026-06-02 21:02:26 +09:00
2026-06-02 21:02:26 +09:00
2026-05-20 22:11:34 +09:00
2026-06-02 19:24:40 +09:00
2026-05-26 10:54:35 +09:00
2026-06-02 21:02:26 +09:00
2026-06-02 22:53:05 +09:00
2026-06-02 21:02:26 +09:00
2026-05-18 18:25:36 +09:00
2026-05-26 08:31:41 +09:00
2026-06-03 00:59:13 +09:00
2026-05-31 18:51:12 +09:00