This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//@ts-check | |
const { readFileSync } = require('fs'); | |
const { join } = require('path'); | |
const readline = require('readline'); | |
/** @typedef {Exclude<typeof instructions[number]["name"], "NEW_LABEL">} INSTRUCTION_NAME */ | |
/** @typedef {{name:INSTRUCTION_NAME}} INSTRUCTION */ | |
/** @typedef {{value:bigint, type:"NUMBER"}|{type:"LABEL", value:string}} VALUE */ | |
/** @typedef {VALUE|INSTRUCTION} VALUE_OR_INSTRUCTION */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Context | |
* @typedef {object} Context | |
* @property {boolean} isError | |
* @property {string} errorMessage | |
* @property {number} index | |
* @property {any} result | |
* @property {any} srcObj | |
* @property {string} path | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Any server would do as long as there is a path that sets a cookie named devtools | |
**/ | |
//@ts-ignore | |
import { Bun } from 'bun'; | |
import fs from "fs"; | |
export default { | |
port: 3000, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"list":[ | |
"localhost:400", | |
] | |
} |