mem.ww was retired in Phase-0; these two imports survived only because the driver silently skipped unresolvable imports. Provably dead: no mem module exists and both units build identically without them. Removal precedes the loud driver, which would otherwise fatal on them.
31 lines
683 B
Plaintext
31 lines
683 B
Plaintext
// selfhost/test/uses.ww — AST-diff fixture. Grows as parse.ww does.
|
|
// Currently exercises: `use IDENT;`, `def NAME: TYPE = LIT;`,
|
|
// `type NAME = TYPE;` (alias + struct), top-level `let NAME: TYPE = LIT;`.
|
|
//
|
|
// Function declarations are still recovered past — the body parser
|
|
// is the next major chunk. See lib/ww/parse.ww header.
|
|
|
|
package test;
|
|
|
|
import os;
|
|
import fmt;
|
|
|
|
def MAX_LINE: i32 = 4096;
|
|
def NAME: str = "ww";
|
|
def READY: bool = true;
|
|
|
|
type byte = u8;
|
|
type rune = i32;
|
|
type pos = struct {
|
|
file: str,
|
|
line: i32,
|
|
col: i32,
|
|
};
|
|
type buffer = [4096]u8;
|
|
type bytes = []u8;
|
|
type linkptr = *byte;
|
|
|
|
let nerrors: i32 = 0;
|
|
let nwarnings: i32 = 0;
|
|
let prog_name: str = "ww";
|