oadl - OADL interpreter and desk calculator
oadl [flags] [filenames] [args]
The [flags] are zero or more of:
The [filenames] are zero or more source files (with a suffix of ".oad") or executable files (with a suffix of ".oax"). If no filenames are given, OADL will run in interactive desk calculator mode. The optional [args] are passed to the OADL main proc if OADL is not being run in interactive desk calculator mode.
oadl is the OADL interpreter. It will compile-and-run an OADL program, or it can operate as an interactive desk calculator. In desk calculator mode, OADL declarations and programs may be entered and evaluated immediately. See oadlcalc for more information on the interactive desk calculator.
Full documentation of the OADL language may be found at http://rcunniff.com/OADL/oadl.html. Sample OADL test programs may be found at http://rcunniff.com/OADL/Tests/index.html and at http://rcunniff.com/OADL/ADV/index.html.
Compile-and-run example:
bash $ cat hello.oad proc main() { "Hello, world!\n"; } bash $ oadl hello.oad Hello, world!
Interactive desk calculator example:
bash $ oadl OADL calculator. Type #help for help, #quit to quit. a = 17 a * 2 34 proc fact(a) { return (a < 1) ? 1 : (a * fact(a-1)); } fact(4) 24
The following environment variables are used by oadl: