Difference between revisions of "Scripting/Programming Language"
Jump to navigation
Jump to search
AngelHerraez (talk | contribs) (Jmol scripting as a programming language) |
AngelHerraez (talk | contribs) (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 == | ||
− | |||
− | |||
− | |||
=== Jmol math === | === Jmol math === | ||
− | * | + | * Variables |
− | * Global and | + | * Global and local scope |
− | * Read- | + | * Read-only variables |
− | * | + | * Variable types |
− | * | + | * Quaternion math |
− | * Operators and | + | * Operators and operands |
− | * Operation | + | * 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 | ||
− | === | + | === Flow control === |
− | * if ... else ... | + | 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)
Contents
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
- prompt
- script