gctGenerator/site/.vuepress/components/codes/codegen.js

20 lines
325 B
JavaScript
Raw Normal View History

import InstantRestart from './InstantRestart/codegen.js';
2022-04-21 08:25:35 +09:00
import qft from './qft/codegen.js';
export default {
InstantRestart,
2022-04-08 16:29:24 +09:00
qft,
};
/**
* @param {string|null} s -- raw input string
*/
export function parseJSON(s) {
if (s == null) return null;
try {
return JSON.parse(s);
} catch {
return null;
}
}