Scripting/Programming Language

From Jmol
Jump to navigation Jump to search

(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 http://chemapps.stolaf.edu/jmol/docs/#jmolmath for the details

Functions

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

Flow control

See http://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