Wafl Home

Command Line Interpreter Tutorial

Inline Code

Command line interpreter clWafl features direct evaluation of simple Wafl expressions, without program file usage. Invocation in the following form:

clWafl [<options>] -code <Wafl expression> [-args <arguments>]

evaluates specified Wafl expression.

The usage of quotes inside the expression should follow the appropriate command line processor rules. With this option, clWafl is usable as a powerful calculator, or a simple testing tool.

Any option except -args may be specified before the Wafl expression.

Source code:

clWafl -code 1+2+3+'Hello'.length()

Result:

11

 

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.