UNPKG

molstar

Version:

A comprehensive macromolecular library.

24 lines (23 loc) 607 B
"use strict"; /** * Copyright (c) 2022 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Koya Sakuma <koya.sakuma.work@gmail.com> * * Adapted from MolQL src/transpile.ts */ Object.defineProperty(exports, "__esModule", { value: true }); exports.parse = void 0; var all_1 = require("./transpilers/all"); var transpiler = all_1._transpiler; function parse(lang, str) { try { var query = transpiler[lang](str); return query; } catch (e) { console.error(e.message); throw e; } } exports.parse = parse;