:== --{These commands can be used at all levels of CNS} abort --{Abort the CNS process immediately} open formatted=formatted|unformatted access=read|write|append end --{Open a file for access} close disposition=keep|delete end --{Close a currently opened file} rewind end --{Rewind a currently opened file} fileexist end --{Check to see if a file exists. The status (logical) is returned in $result} set end --{Set miscellaneous run-time parameters} evaluate --{Evaluate an expression and assign result to a symbol} display {|[]} newline --{Display text} remark newline --{Add text to current remarks database} system --{Issue a shell command} define ( {={[newline]};} ) --{Define parameters} procedure ( {={[newline]};} ) {} endprocedure --{Define a procedure} call ( {={[newline]};} ) --{Call a procedure} buffer {} end --{Manipulate a text storage buffer.} if then {} {[elseif then {}]} [else {}] end if --{Conditional execution of statements if a condition is true.} while --{Repeated execution of statements while a condition is true.} for in ( {||} ) --{Repeated execution of statements in a loop. is set to the value of the next item in the list each loop iteration.} for in id --{Repeated execution of statements in a loop. is set to the atom id of the next atom in the selection each loop iteration.} @ --{Insert contents of file into command stack and change to a new scope.} @@ --{Read contents of file but do not insert in command stack and change to a new scope.} inline @ --{Insert contents of file in the command stack but do not change the current scope.} { [{newline }] } --{Comment. Text between brackets is ignored.} ! --{Single line comment. Text after exclamation point is ignored.} --{The following symbols are automatically defined: $cpu - elapsed user CPU time (real) $time - wall-clock time (string) $date - the date (string) $name - username (string) $system - system identity (string) $pi - Pi (real) $kboltz - Boltzmann constant (real) $eflag. - which energy terms are active (logical) $curbytes - current memory usage (string) $maxbytes - maximum memory usage (string) $curoverh - current memory overhead (string) $maxoverh - maximum memory overhead (string) } :== ( || || ) :== eq | ne | gt | lt | ge | le | = | # | > | >= | < | <= :== loop