Wafl Home

Command Line Interpreter Tutorial

Program Arguments

If command line include additional arguments, they are available to Wafl program as a result of function cmdLineArgs(). This function evaluates a string list. The first element of the list is the program file name, or inline specified Wafl expression. Other elements are command line arguments, in the order of specification. Command line interpreter's options are not included.

Source code:

clWafl -code cmdLineArgs() -args par1 -par2 "a b c d"

Result:

["cmdLineArgs()", "par1", "-par2", "a b c d"]

 

Table of Contents

Let's Start

Program Structure

Primitive Data Types

List

Tuple

Record

HTML

Command Line Interpreter

Using Web Servers

Syntax

Examples

Tips

The most of examples evaluates with both command line and Web server Wafl interpreters. If any example is based on specific features of an interpreter, it is explicitly annotated.