ww: group lex.ww + tok.ww into lib/ww/lex/ submodule
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user