This package contains wesl source texts useful for tool builders to verify WESL parsing and linking.
The source texts are published as an array of objects in both JSON and TypeScript format. The format is described in: TestSchema.ts
JSON version: importCases.json importSyntaxCases.json
TypeScript version: ImportCases.ts ImportSyntaxCases.ts
Author new examples in TypeScript. (TypeScript is similar to JSON but a little more user friendly for authoring.)
A tool is included in the package to convert the TypeScript objects to JSON.
pnpm install
pnpm cases
pnpm cases:watch