mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-14 16:35:03 +01:00
make it a wasi executable
This commit is contained in:
parent
8dd7c174ee
commit
1d0e3a3aff
7 changed files with 87 additions and 13 deletions
|
|
@ -17,8 +17,8 @@ const BUILTIN_SET = new Set<string>(BUILTINS);
|
|||
export function resolve(ast: Ast): Ast {
|
||||
const items = new Map<string, number>();
|
||||
|
||||
for (let i = 0; i < ast.length; i++) {
|
||||
const item = ast[i];
|
||||
for (let i = 0; i < ast.items.length; i++) {
|
||||
const item = ast.items[i];
|
||||
const existing = items.get(item.node.name);
|
||||
if (existing !== undefined) {
|
||||
throw new CompilerError(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue