mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-26 11:34:14 +00:00
16 lines
415 B
JavaScript
Executable file
16 lines
415 B
JavaScript
Executable file
#!/usr/bin/env node
|
|
|
|
const fs = require("fs");
|
|
const path = require("path");
|
|
const run = require("./interpreter");
|
|
const runtime = require("./runtime");
|
|
const System = require("./runtime/System");
|
|
|
|
function main() {
|
|
const relativePath = process.argv[2];
|
|
const buffer = fs.readFileSync(path.join(__dirname, relativePath));
|
|
const system = new System();
|
|
run({ runtime, buffer, system, log: true });
|
|
}
|
|
|
|
main();
|