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

20 lines
333 B
JavaScript
Raw Normal View History

import InstantRestart from './InstantRestart/codegen.js';
import qft from './qft_pending/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;
}
}