diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gencode.js | 6 |
1 files changed, 5 insertions, 1 deletions
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 |