ww+wcc: emit and lex // MODULE: <name> directive in combined.ww
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// MODULE: os
|
||||
// os — process and filesystem facade. The body of each call lands
|
||||
// either in libwwrt.a (rt_syscall trampoline) or libc bindings,
|
||||
// depending on how the program was linked.
|
||||
@@ -207,6 +208,7 @@ export fn getdents64(fd: i32, buf: *u8, n: u64) i64 = {
|
||||
return syscall3(SYS_GETDENTS64, fd: i64, buf: i64, n: i64);
|
||||
};
|
||||
|
||||
// MODULE: strconv
|
||||
// strconv — number↔string conversions. Decimal i64 to/from a fixed
|
||||
// buffer. Two error idioms ship side by side:
|
||||
// - Plan 9 style (atoi64): tuple `(value, ok)`. Pre-dates the
|
||||
@@ -327,6 +329,7 @@ export fn parseu64(s: str) (u64 | str) = {
|
||||
return v;
|
||||
};
|
||||
|
||||
// MODULE: ascii
|
||||
// ascii — byte-class predicates and case folding for the ASCII range.
|
||||
// Matches Hare's ascii::isdigit family. Bytes outside 0..127 always
|
||||
// answer `false`. The lexer hot path uses these inline; they are
|
||||
@@ -420,6 +423,7 @@ export fn toupper(c: u8) u8 = {
|
||||
return c;
|
||||
};
|
||||
|
||||
// MODULE: test
|
||||
// selfhost/test/smoke.ww — end-to-end smoke for the selfhost path.
|
||||
//
|
||||
// Exercises the patterns the real ww-side compiler port will use:
|
||||
|
||||
Reference in New Issue
Block a user