From bcb31712b35f1a3596f8a631bbcf3c4db68f4ff1 Mon Sep 17 00:00:00 2001 From: Joël Simoneau Date: Mon, 17 Mar 2025 12:14:24 -0400 Subject: Interactive Successions --- tools/gencode.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/gencode.js b/tools/gencode.js index a68451a..b962a07 100644 --- a/tools/gencode.js +++ b/tools/gencode.js @@ -61,7 +61,7 @@ for (let line of fs.readFileSync("events.txt", "utf-8").split("\n")) { SCODE[line[1]] = pc console.log("") console.log("// SUCC " + line[1]) - console.log("CODE[" + line[1] + " * 2 + 72] = [") + console.log("CODE[" + line[1] + " * 2 + 74] = [") break case "if_space": @@ -138,6 +138,10 @@ for (let line of fs.readFileSync("events.txt", "utf-8").split("\n")) { emit([ line[0], line.slice(1).join(" ") ]) break + case "log_h2": + emit([ line[0], line[1], line.slice(2).join(" ") ]) + break + case "count_spaces": emit([ line[0], "(s)=>" + line.slice(1).join(" ") ]) break -- cgit v1.2.3