programming
Here are some useful programming constructs for controlling the flow of execution.
apply
-- loop over a list, keeping results
if
-- condition testing
scan
-- loop over a list
while
-- loop control
;
-- statement separator
Controlling the scope of variables:
:=
-- assignment to and declaring a new local variable
global
-- using global symbols which have values
local
-- declaring new local symbols
quote
-- using symbols which have values
Miscellaneous items:
--
-- introducing comments
addEndFunction
-- do something upon exiting
addStartFunction
-- do something after loading dumped data
clearOutput
-- release some memory
clearAll
-- release more memory
Command
-- top level commands
erase
-- remove a symbol
value
-- evaluate a string, symbol, or expression
memoize
-- memoizing functions
using methods
-- using methods
notImplemented
-- 'not implemented yet' error message
processArgs
-- process optional arguments to functions
protect
-- protecting the value of a symbol
runEndFunctions
-- run the ending functions
runStartFunctions
-- run the starting functions
setrecursionlimit
-- limits on recursion depth
syntax
-- the syntax of the language
value
-- getting values of symbols
For internal use only:
lineNumber
-- the current line number
lookupCount
-- how many times a symbol has been seen
phase
-- internal variable for compilation
runStartFunctions
-- run the start functions