Download unified-engine/kernel/ast/ast.js from Snapkitty/repoverse: direct link, hf CLI and curl.
- Browser
- Download file 775 Bytes
-
https://huggingface.co/Snapkitty/repoverse/resolve/main/unified-engine/kernel/ast/ast.js
- Command line
-
hf download hf://Snapkitty/repoverse/unified-engine/kernel/ast/ast.js
-
curl -L -o ast.js https://huggingface.co/Snapkitty/repoverse/resolve/main/unified-engine/kernel/ast/ast.js
775 Bytes
| /** | |
| * Kernel AST. Deliberately small: expressions, statements, and a function | |
| * signature with typed parameters. No types are inferred here. | |
| * | |
| * TypeRef { kind: 'scalar' | 'buffer', scalar, isConst } | |
| * Expr { kind, ... } kinds: int float bool var builtin index unary | |
| * binary assign call cast | |
| * (float carries `single`: true for an `f` suffix) | |
| * Stmt { kind, ... } kinds: decl assign if while for break continue | |
| * return expr block | |
| * Param { name, type } | |
| * KernelAst { name, returnType, params, body, isGlobal } | |
| * | |
| * The shapes are documented rather than declared as types because the project | |
| * runs as plain ESM JavaScript with no TypeScript toolchain. | |
| */ | |
| export {}; | |