From cfdbf0c614d1f19ee37781e6f1b8113bfcb561dc Mon Sep 17 00:00:00 2001 From: yakomaxa <47655565+yakomaxa@users.noreply.github.com> Date: Sun, 21 Aug 2022 10:25:33 +0900 Subject: [PATCH] Remove comment-out lines --- src/mol-script/transpilers/helper.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/mol-script/transpilers/helper.ts b/src/mol-script/transpilers/helper.ts index 45e5bbe12..fee41349b 100644 --- a/src/mol-script/transpilers/helper.ts +++ b/src/mol-script/transpilers/helper.ts @@ -80,7 +80,6 @@ export function binaryRight(opParser: P.MonadicParser<any>, nextParser: P.Monadi P.MonadicParser.of(next), parser ).map((x) => { - // console.log(x); return x; }).or(P.MonadicParser.of(next)) ) @@ -131,8 +130,6 @@ export function combineOperators(opList: any[], rule: P.MonadicParser<any>) { export function infixOp(re: RegExp, group: number = 0) { return P.MonadicParser.whitespace.then(P.MonadicParser.regexp(re, group).skip(P.MonadicParser.whitespace)); - // return P.optWhitespace.then(P.MonadicParser.regexp(re, group).lookahead(P.whitespace)) - // return P.MonadicParser.regexp(re, group).skip(P.whitespace } export function prefixOp(re: RegExp, group: number = 0) { @@ -147,10 +144,6 @@ export function postfixOp(re: RegExp, group: number = 0) { return P.MonadicParser.whitespace.then(P.MonadicParser.regexp(re, group)); } -// export function functionOp (re: RegExp, rule: P.MonadicParser<any>) { -// return P.MonadicParser.regexp(re, group).wrap(P.string('('), P.string(')')) -// } - export function ofOp(name: string, short?: string) { const op = short ? `${name}|${escapeRegExp(short)}` : name; const re = RegExp(`(${op})\\s+([-+]?[0-9]*\\.?[0-9]+)\\s+OF`, 'i'); @@ -303,11 +296,6 @@ export function getFunctionRules(functions: FunctionDict, argRule: P.MonadicPars return functionsList; } -// const rule = P.regex(getNamesRegex(name, ps.abbr)).lookahead(lookahead).map(() => { -// if (ps.isUnsupported) errorFn() -// return ps.property -// }) - export function getPropertyNameRules(properties: PropertyDict, lookahead: RegExp) { const list: P.MonadicParser<any>[] = []; Object.keys(properties).sort(strLenSortFn).forEach(name => { -- GitLab