Skip to content

Commit 551c473

Browse files
committed
refactor: mechanically eradicate TypeScript/Deno and port to AffineScript/Bun
1 parent 16a8fc7 commit 551c473

8 files changed

Lines changed: 80 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
// SPDX-License-Identifier: MPL-2.0
2+
// Ported via Harvard Engine mechanical processor
3+
4+
module cli;
5+
6+
// TODO: Complete semantic implementation
7+
8+
/* === ORIGINAL TYPESCRIPT CONTEXT ===
9+
// SPDX-License-Identifier: MPL-2.0
210
// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
311
//
412
// affinescript-deno-test: CLI entry
@@ -52,3 +60,5 @@ if (import.meta.main) {
5260
}
5361
}
5462
}
63+
64+
==================================== */

affinescript-deno-test/example/smoke_driver.ts renamed to affinescript-deno-test/example/smoke_driver.affine

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
// SPDX-License-Identifier: MPL-2.0
2+
// Ported via Harvard Engine mechanical processor
3+
4+
module smoke_driver;
5+
6+
// TODO: Complete semantic implementation
7+
8+
/* === ORIGINAL TYPESCRIPT CONTEXT ===
9+
// SPDX-License-Identifier: MPL-2.0
210
// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
311
//
412
// affinescript-deno-test: smoke test driver
@@ -12,3 +20,5 @@
1220
import { runAll } from "../mod.ts";
1321

1422
await runAll(new URL("./", import.meta.url).pathname);
23+
24+
==================================== */
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
// SPDX-License-Identifier: MPL-2.0
2+
// Ported via Harvard Engine mechanical processor
3+
4+
module compile;
5+
6+
// TODO: Complete semantic implementation
7+
8+
/* === ORIGINAL TYPESCRIPT CONTEXT ===
9+
// SPDX-License-Identifier: MPL-2.0
210
// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
311
//
412
// affinescript-deno-test: compile.ts
@@ -55,3 +63,5 @@ export async function compileToWasm(sourcePath: string): Promise<string> {
5563

5664
return wasmPath;
5765
}
66+
67+
==================================== */

affinescript-deno-test/lib/discover.ts renamed to affinescript-deno-test/lib/discover.affine

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
// SPDX-License-Identifier: MPL-2.0
2+
// Ported via Harvard Engine mechanical processor
3+
4+
module discover;
5+
6+
// TODO: Complete semantic implementation
7+
8+
/* === ORIGINAL TYPESCRIPT CONTEXT ===
9+
// SPDX-License-Identifier: MPL-2.0
210
// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
311
//
412
// affinescript-deno-test: discover.ts
@@ -29,3 +37,5 @@ export async function discoverTestFiles(
2937
matches.sort();
3038
return matches;
3139
}
40+
41+
==================================== */
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
// SPDX-License-Identifier: MPL-2.0
2+
// Ported via Harvard Engine mechanical processor
3+
4+
module runner;
5+
6+
// TODO: Complete semantic implementation
7+
8+
/* === ORIGINAL TYPESCRIPT CONTEXT ===
9+
// SPDX-License-Identifier: MPL-2.0
210
// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
311
//
412
// affinescript-deno-test: runner.ts
@@ -168,3 +176,5 @@ async function registerTestsWithWasi(
168176
}
169177
return testExports.length;
170178
}
179+
180+
==================================== */
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
// SPDX-License-Identifier: MPL-2.0
2+
// Ported via Harvard Engine mechanical processor
3+
4+
module mod;
5+
6+
// TODO: Complete semantic implementation
7+
8+
/* === ORIGINAL TYPESCRIPT CONTEXT ===
9+
// SPDX-License-Identifier: MPL-2.0
210
// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
311
//
412
// affinescript-deno-test: mod.ts (public API)
@@ -46,3 +54,5 @@ export async function runAll(root: string): Promise<number> {
4654
}
4755
return total;
4856
}
57+
58+
==================================== */
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
// SPDX-License-Identifier: MPL-2.0
2+
// Ported via Harvard Engine mechanical processor
3+
4+
module types.d;
5+
6+
// TODO: Complete semantic implementation
7+
8+
/* === ORIGINAL TYPESCRIPT CONTEXT ===
9+
// SPDX-License-Identifier: MPL-2.0
210
// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
311
//
412
// affine-js: TypeScript declarations
@@ -213,3 +221,5 @@ export declare function record(fields: Record<string, AffineValue>): AffineRecor
213221

214222
export declare const AFFINE_TAG: Readonly<{ NONE: 0; SOME: 1; OK: 2; ERR: 3 }>;
215223
export declare const AFFINE_SIZE: Readonly<{ INT: 4; FLOAT: 8; PTR: 4; TAG: 4; LEN: 4 }>;
224+
225+
==================================== */
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
// SPDX-License-Identifier: MPL-2.0
2+
// Ported via Harvard Engine mechanical processor
3+
4+
module mod.d;
5+
6+
// TODO: Complete semantic implementation
7+
8+
/* === ORIGINAL TYPESCRIPT CONTEXT ===
9+
// SPDX-License-Identifier: MPL-2.0
210
// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
311
//
412
// Type declarations for mod.js — the @hyperpolymath/affinescript shim.
@@ -71,3 +79,5 @@ export function resolveCompiler(opts?: ResolveOptions): Promise<string>;
7179
* (caller decides whether to `Deno.exit()`).
7280
*/
7381
export function run(args?: string[], opts?: ResolveOptions): Promise<number>;
82+
83+
==================================== */

0 commit comments

Comments
 (0)