ww: group lex.ww + tok.ww into lib/ww/lex/ submodule

This commit is contained in:
2026-05-11 16:42:13 +09:00
parent 97ca76d2bb
commit 72dfb6ac8d
8 changed files with 47 additions and 35 deletions

View File

@@ -437,8 +437,8 @@ export fn parseu64(s: str) (u64 | str) = {
return v;
};
// MODULE: ww
// lib/ww/tok.ww — port of cmd/wcc/tok.c plus the Tkind /
// MODULE: lex
// lib/ww/lex/tok.ww — port of cmd/wcc/tok.c plus the Tkind /
// Tok / Pos shapes from cmd/wcc/ww.h.
//
// Token kind values must stay numerically equal to the C side: the
@@ -927,8 +927,8 @@ export fn toupper(c: u8) u8 = {
return c;
};
// MODULE: ww
// lib/ww/lex.ww — port of cmd/wcc/lex.c.
// MODULE: lex
// lib/ww/lex/lex.ww — port of cmd/wcc/lex.c.
//
// The DFA, the helpers, and the order of decisions all mirror the C
// version exactly. The 990_selfhost test diffs the resulting token

View File

@@ -437,8 +437,8 @@ export fn parseu64(s: str) (u64 | str) = {
return v;
};
// MODULE: ww
// lib/ww/tok.ww — port of cmd/wcc/tok.c plus the Tkind /
// MODULE: lex
// lib/ww/lex/tok.ww — port of cmd/wcc/tok.c plus the Tkind /
// Tok / Pos shapes from cmd/wcc/ww.h.
//
// Token kind values must stay numerically equal to the C side: the
@@ -927,8 +927,8 @@ export fn toupper(c: u8) u8 = {
return c;
};
// MODULE: ww
// lib/ww/lex.ww — port of cmd/wcc/lex.c.
// MODULE: lex
// lib/ww/lex/lex.ww — port of cmd/wcc/lex.c.
//
// The DFA, the helpers, and the order of decisions all mirror the C
// version exactly. The 990_selfhost test diffs the resulting token