Artifact d6595e52c8058447c0c959fa337800056b764488:
- File quarks.js — part of check-in [6b70d94215] at 2018-03-25 22:11:27 on branch trunk — Start writing main program (user: user, size: 327) [annotate] [blame] [check-ins using]
"use strict"; const fs=require("fs"); const quarks=fs.readFileSync("quarks","ascii").split("\n").map(x=>x.trim()).filter(x=>x&&x[0]!="!"); quarks.forEach((x,y)=>console.log("#define Q_"+x+" "+(y+2))); console.log("static const char*const global_quarks[]={"); quarks.forEach(x=>console.log(" \""+x+"\",")); console.log("0};");