Ver Fonte

formatting

Alexander Rose há 2 anos atrás
pai
commit
f27ec4d6a4

+ 4 - 2
src/mol-script/transpilers/all.ts

@@ -1,7 +1,9 @@
-/*
- * Copyright (c) 2017 MolQL contributors, licensed under MIT, See LICENSE file for more info.
+/**
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
  *
  * @author David Sehnal <david.sehnal@gmail.com>
+ *
+ * Adapted from MolQL project
  */
 
 import { transpiler as jmol } from './jmol/parser';

+ 3 - 1
src/mol-script/transpilers/helper.ts

@@ -1,9 +1,11 @@
 /**
- * Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
  *
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
  * @author Panagiotis Tourlas <panagiot_tourlov@hotmail.com>
  * @author Koya Sakuma <koya.sakuma.work@gmail.com>
+ *
+ * Adapted from MolQL project
  */
 
 import * as P from '../../mol-util/monadic-parser';

+ 4 - 2
src/mol-script/transpilers/jmol/examples.ts

@@ -1,8 +1,10 @@
-/*
- * Copyright (c) 2017 MolQL contributors, licensed under MIT, See LICENSE file for more info.
+/**
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
  *
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
  * @author David Sehnal <david.sehnal@gmail.com>
+ *
+ * Adapted from MolQL project
  */
 
 export const examples = [{

+ 6 - 3
src/mol-script/transpilers/jmol/markdown-docs.ts

@@ -1,8 +1,11 @@
-/*
- * Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
+/**
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
+ *
+ * @author Alexander Rose <alexander.rose@weirdbyte.de>
  * @author Koya Sakuma <koya.sakuma.work@gmail.com>
+ *
  * Adapted from MolQL project
-*/
+ */
 
 import { properties } from './properties';
 import { operators } from './operators';

+ 1 - 1
src/mol-script/transpilers/jmol/operators.ts

@@ -1,5 +1,5 @@
 /**
- * Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
  *
  * @author Koya Sakuma <koya.sakuma.work@gmail.com>
  * @author Alexander Rose <alexander.rose@weirdbyte.de>

+ 1 - 2
src/mol-script/transpilers/jmol/parser.ts

@@ -5,8 +5,7 @@
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
  *
  * Adapted from MolQL project
- **/
-
+ */
 
 import * as P from '../../../mol-util/monadic-parser';
 import * as h from '../helper';

+ 6 - 3
src/mol-script/transpilers/jmol/properties.ts

@@ -1,8 +1,11 @@
-/*
- * Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
+/**
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
+ *
+ * @author Alexander Rose <alexander.rose@weirdbyte.de>
  * @author Koya Sakuma <koya.sakuma.work@gmail.com>
+ *
  * Adapted from MolQL project
-*/
+ */
 
 import { MolScriptBuilder } from '../../../mol-script/language/builder';
 const B = MolScriptBuilder;

+ 6 - 3
src/mol-script/transpilers/jmol/symbols.ts

@@ -1,8 +1,11 @@
-/*
- * Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
+/**
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
+ *
+ * @author Alexander Rose <alexander.rose@weirdbyte.de>
  * @author Koya Sakuma <koya.sakuma.work@gmail.com>
+ *
  * Adapted from MolQL project
-*/
+ */
 
 import { properties } from './properties';
 import { operators } from './operators';

+ 3 - 1
src/mol-script/transpilers/pymol/examples.ts

@@ -1,9 +1,11 @@
 /**
- * Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
  *
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
  * @author David Sehnal <david.sehnal@gmail.com>
  * @author Panagiotis Tourlas <panagiot_tourlov@hotmail.com>
+ *
+ * Adapted from MolQL project
  */
 
 export const examples = [{

+ 3 - 1
src/mol-script/transpilers/pymol/markdown-docs.ts

@@ -1,8 +1,10 @@
 /**
- * Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
  *
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
  * @author Panagiotis Tourlas <panagiot_tourlov@hotmail.com>
+ *
+ * Adapted from MolQL project
  */
 
 import { properties } from './properties';

+ 3 - 1
src/mol-script/transpilers/pymol/operators.ts

@@ -1,8 +1,10 @@
 /**
- * Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
  *
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
  * @author Panagiotis Tourlas <panagiot_tourlov@hotmail.com>
+ *
+ * Adapted from MolQL project
  */
 
 import * as P from '../../../mol-util/monadic-parser';

+ 4 - 1
src/mol-script/transpilers/pymol/parser.ts

@@ -1,11 +1,14 @@
 /**
- * Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
  *
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
  * @author Panagiotis Tourlas <panagiot_tourlov@hotmail.com>
+ *
+ * Adapted from MolQL project
  */
 
 // https://pymol.org/dokuwiki/doku.php?id=selection:alpha
+// https://pymolwiki.org/index.php/Selection_Algebra
 // https://github.com/evonove/pymol/blob/master/pymol/layer3/Selector.cpp
 
 import * as P from '../../../mol-util/monadic-parser';

+ 4 - 2
src/mol-script/transpilers/pymol/properties.ts

@@ -1,9 +1,11 @@
 /**
- * Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
  *
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
  * @author Panagiotis Tourlas <panagiot_tourlov@hotmail.com>
- * @author Koya Sakuma
+ * @author Koya Sakuma <koya.sakuma.work@gmail.com>
+ *
+ * Adapted from MolQL project
  */
 
 import { MolScriptBuilder } from '../../../mol-script/language/builder';

+ 3 - 1
src/mol-script/transpilers/pymol/symbols.ts

@@ -1,8 +1,10 @@
 /**
- * Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
  *
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
  * @author Panagiotis Tourlas <panagiot_tourlov@hotmail.com>
+ *
+ * Adapted from MolQL project
  */
 
 import { properties } from './properties';

+ 3 - 1
src/mol-script/transpilers/transpiler.ts

@@ -1,8 +1,10 @@
 /**
- * Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
  *
  * @author David Sehnal <david.sehnal@gmail.com>
  * @author Panagiotis Tourlas <panagiot_tourlov@hotmail.com>
+ *
+ * Adapted from MolQL project
  */
 
 import { Expression } from '../language/expression';

+ 4 - 3
src/mol-script/transpilers/types.ts

@@ -1,13 +1,14 @@
 /**
- * Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
  *
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
  * @author Panagiotis Tourlas <panagiot_tourlov@hotmail.com>
+ *
+ * Adapted from MolQL project
  */
 
 import * as P from '../../mol-util/monadic-parser';
 import { Expression } from '../language/expression';
-// import Symbol from '../mini-lisp/symbol'
 
 export interface AtomGroupArgs {
     [index: string]: any
@@ -35,7 +36,7 @@ export interface Property {
     regex: RegExp
     map: (s: string) => any
     level: 'atom-test' | 'residue-test' | 'chain-test' | 'entity-test'
-    property?: any /* Symbol */
+    property?: Expression
 }
 
 export type PropertyDict = { [name: string]: Property }

+ 3 - 1
src/mol-script/transpilers/vmd/examples.ts

@@ -1,8 +1,10 @@
 /**
- * Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
  *
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
  * @author Panagiotis Tourlas <panagiot_tourlov@hotmail.com>
+ *
+ * Adapted from MolQL project
  */
 
 export const examples = [{

+ 2 - 0
src/mol-script/transpilers/vmd/functions.ts

@@ -3,6 +3,8 @@
  *
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
  * @author Panagiotis Tourlas <panagiot_tourlov@hotmail.com>
+ *
+ * Adapted from MolQL project
  */
 
 import { MolScriptBuilder } from '../../../mol-script/language/builder';

+ 3 - 1
src/mol-script/transpilers/vmd/keywords.ts

@@ -1,8 +1,10 @@
 /**
- * Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
  *
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
  * @author Panagiotis Tourlas <panagiot_tourlov@hotmail.com>
+ *
+ * Adapted from MolQL project
  */
 
 import * as h from '../helper';

+ 3 - 1
src/mol-script/transpilers/vmd/markdown-docs.ts

@@ -1,8 +1,10 @@
 /**
- * Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
  *
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
  * @author Panagiotis Tourlas <panagiot_tourlov@hotmail.com>
+ *
+ * Adapted from MolQL project
  */
 
 import { properties } from './properties';

+ 3 - 1
src/mol-script/transpilers/vmd/operators.ts

@@ -1,8 +1,10 @@
 /**
- * Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
  *
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
  * @author Panagiotis Tourlas <panagiot_tourlov@hotmail.com>
+ *
+ * Adapted from MolQL project
  */
 
 import * as P from '../../../mol-util/monadic-parser';

+ 3 - 1
src/mol-script/transpilers/vmd/parser.ts

@@ -1,9 +1,11 @@
 /**
- * Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
  *
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
  * @author Panagiotis Tourlas <panagiot_tourlov@hotmail.com>
  * @author Koya Sakuma <koya.sakuma.work@gmail.com>
+ *
+ * Adapted from MolQL project
  */
 
 import * as P from '../../../mol-util/monadic-parser';

+ 3 - 1
src/mol-script/transpilers/vmd/properties.ts

@@ -1,8 +1,10 @@
 /**
- * Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
  *
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
  * @author Panagiotis Tourlas <panagiot_tourlov@hotmail.com>
+ *
+ * Adapted from MolQL project
  */
 
 import { MolScriptBuilder } from '../../../mol-script/language/builder';

+ 3 - 1
src/mol-script/transpilers/vmd/symbols.ts

@@ -1,8 +1,10 @@
 /**
- * Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
  *
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
  * @author Panagiotis Tourlas <panagiot_tourlov@hotmail.com>
+ *
+ * Adapted from MolQL project
  */
 
 import { properties } from './properties';