Here we present the Wafl command line interpreter syntax. This document is autogenerated. To get the current command line options please run:
clwafl -help
Command line interpreter program name may differ, depending on the installation package. It may be clWafl
, clwafl
or wafl
.
*** Wafl Command Line Interpreter
Usage:
clwafl [<options>] <program file name> [<arguments>]
(to run a program)
or
clwafl [<options>] -code <source code> [-args <arguments>]
(to run the specified source code)
where <options> is space separated list with some of the following:
Program arguments:
-args <args> to specify Wafl program command line arguments
-dir:<app directory>
specify an application directory
(default is program file path, or '.')
-workdir:<working directory>
specify a program working directory
(default is program file path, or '.')
-env:<env.var.name>=<env.var.value>
to define an environment variable
-libdir:<lib directory>
specify a library search directory
-lib:<name>:<file>
load Wafl library <file> and use as <name>
-title:<a title>
set command window title
Database access:
-dbdriver:<database driver>
to select a database driver
-db:<database alias>
to select a database alias
-user:<database connection username>
to specify a database username
-pwd:<database connection password>
to specify a database password
Program checking:
-check check if program is correct (wihout executing)
-checkdir:<dir>
check if all programs in <dir> are correct
-checkdir check if all programs in curr.dir. are correct
-checkapp:<dir>
check if all programs in <dir> and subdirs are correct
-checkapp check if all programs in curr.dir. and subdirs are correct
Runtime options:
-stdstack use standard stack
-extstack use extendable stack (default)
Execution options:
-repeat:<n> repeat <n> times)
-memory print memory report
-msgs print compilation messages
-timer measure execution duration
-wait wait for a key after execution
Debugging options:
-debug use debug mode
-nornd run without random number generator initialization
-parsersrc print the source code generated from AST
-parserast print the parser generated abstract syntax tree
-buildersrc print the builder generated 'meta' source code
-builderaeg print the builder generated abstract evaluation graph
Additional options:
-version print version description
-help print this usage description
-listlib print system library contents
-listlib:<w> print system library elements with names containing <w>
and dynamic library with filename <w>
-verbose print more details on -listlib and -version