Getting Started

The Philosophy of Visual Lambda

 

Expression

An expression in a programming language is a combination of values, variables, operators, and functions that are interpreted (evaluated) according to the particular rules of precedence and of association for a particular programming language, which computes and then produces (returns, in a stateful environment) another value.

The goal of Visual Programming is to build "modules" with specific "signature". For more information about module and signature, see "Type, Module and Signature".

Expressions usually take several operands. For example, "addition expression" takes two or more operands to calculate the sum of them. The oprands can be other expressions as long as the data type matches.

A Visual Lambda module is an expressions itself.

Below are types of expressions currently supported in Visual Lambda:

Note: Users can just try to comprehend as much as possible and then proceed to the following chapters. Users can always go back and reference the expression types in the list in the future.

 

Decision

Decision is a special type of expression. It can be composed of two expressions. The first expression has a type of "Boolean" value (in Visual Lambda we call it "Condition"). The second one does not have a return value (in Visual Lambda we call that kind of expression an "Action"). The "Action" can only be executed if the evaluation of "Condition" returns "true".

 

Expression Tree and Decision Tree

Both expressions and decisions can be expressed as a tree. Visual Lambda editor helps user to build the expression and decision trees.

For example, the expressing is display as a tree view with the operands as the child nodes. An operand can be another expression, too. So expressions can be nested to form an express tree. Remember, the Visual Lambda module is an expression, too.

In the following chapters we will walk through building the expression trees fro Visual Lambda modules.