Difference between revisions of "Scripting/Programming Language"

From Jmol
Jump to navigation Jump to search
(Jmol scripting as a programming language)
 
(Jmol scripting as a programming language)
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
  
 
== Jmol scripting as a programming language ==
 
== Jmol scripting as a programming language ==
 
 
mathematical operators (JmolMath), control structures (loops, conditionals, etc.). You may be interested in this
 
  
 
=== Jmol math ===
 
=== Jmol math ===
* Jmol Variables
+
* Variables
* Global and Local Scope
+
* Global and local scope
* Read-Only Variables
+
* Read-only variables
* Jmol Math Variable Types
+
* Variable types
* Jmol Quaternion Math
+
* Quaternion math
* Operators and Operands
+
* Operators and operands
* Operation Rules
+
* Operation rules
 
See {{ScriptingDoc}}#jmolmath for the details
 
See {{ScriptingDoc}}#jmolmath for the details
  
Line 19: Line 16:
 
See {{ScriptingDoc}}#functions for the details
 
See {{ScriptingDoc}}#functions for the details
  
=== Control structures ===
+
=== Flow control ===
* if ... else ... elseif
+
See {{ScriptingDoc}} for the documentation on each of these commands:
 +
* if ... elseif ... else ... endif
 +
* if ? : (inline conditional)
 
* for
 
* for
 
* while
 
* while

Latest revision as of 10:20, 31 August 2013

(This is still a draft)

Jmol scripting as a programming language

Jmol math

  • Variables
  • Global and local scope
  • Read-only variables
  • Variable types
  • Quaternion math
  • Operators and operands
  • Operation rules

See https://chemapps.stolaf.edu/jmol/docs/#jmolmath for the details

Functions

See https://chemapps.stolaf.edu/jmol/docs/#functions for the details

Flow control

See https://chemapps.stolaf.edu/jmol/docs/ for the documentation on each of these commands:

  • if ... elseif ... else ... endif
  • if ? : (inline conditional)
  • for
  • while
  • break
  • continue
  • loop
  • goto
  • switch / case
  • try ... catch
  • delay
  • quit
  • exit
  • pause / wait
  • resume
  • step
  • return
  • timeout

Extensions

  • javascript
  • print
  • prompt
  • script

Contributors

AngelHerraez