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