message: remove comment and unused character and functions
diff: @@ -18,10 +18,7 @@ import { Transpiler } from '../transpiler';
  function listMap(x: string) { return x.split(',').map(x => x.replace(/^["']|["']$/g, '')); }
  -function rangeMap(x: string) {
  - const [min, max] = x.split('-').map(x => parseInt(x));
  - return { min, max };
  -}
  +
  function listOrRangeMap(x: string) {
  if (x.includes('-') && x.includes(',')) {
  const pSplit = x.split(',').map(x => x.replace(/^["']|["']$/g, ''));
  @@ -57,8 +54,6 @@ const propertiesDict = h.getPropertyRules(macroproperties);
  const dot = P.MonadicParser.string('.');
  const colon = P.MonadicParser.string(':');
  const star = P.MonadicParser.string('*');
  -const bra = P.MonadicParser.string('(');
  -const ket = P.MonadicParser.string(')');
  const commu = P.MonadicParser.string('[');
  const tator = P.MonadicParser.string(']');
  @@ -97,18 +92,18 @@ function atomExpressionQuery(x: any[]) {
  }
  const resnoRangeProps: any = [];
  - console.log(resnorange)
  + console.log(resnorange);
  if (resnorange) {
  resnorange.forEach((x: number) =>{
  resnoRangeProps.push(B.core.rel.eq([B.ammp('auth_seq_id'), x]));
  - })
  + });
  console.log(resnoRangeProps);
  };
  if (resnoRangeProps.length) tests['residue-test'] = h.orExpr(resnoRangeProps);
  const resProps: any = [];
  if (resno) {
  - console.log(resno)
  + console.log(resno);
  resProps.push(B.core.rel.eq([B.ammp('auth_seq_id'), resno]));
  }
  if (inscode) resProps.push(B.core.rel.eq([B.ammp('pdbx_PDB_ins_code'), inscode]));
  @@ -132,8 +127,7 @@ const lang = P.MonadicParser.createLanguage({
  r.Parens,
  r.Operator,
  r.Expression
  - ).wrap(P.MonadicParser.string("("), P.MonadicParser.string(")"));
  -// ).wrap(P.MonadicParser.regexp(/\(\s+/), P.MonadicParser.regexp(/\s+\)/));
  + ).wrap(P.MonadicParser.string('('), P.MonadicParser.string(')'));
  },
  Expression: function (r: any) {
  @@ -310,7 +304,7 @@ const lang = P.MonadicParser.createLanguage({
  ResnoRange: function (r: any) {
  - return P.MonadicParser.regex(/[0-9,-]+/).map( listOrRangeMap ).desc('resnorange')
  + return P.MonadicParser.regex(/[0-9,-]+/).map(listOrRangeMap).desc('resnorange');
  // // 123-200
  // // -12--3
  },
  