Get Going With WESCL

Language Documentation

Damian Wróbel

Acknowledgement: Thanks to Christoph Buchala <netica@pro.onet.pl> for his reviews of this material and bug-findings escapades into WESCL.


Table of Contents
1. Introduction
What is WESCL
How it works?
2. Basic Language Features
The Program
Comments
Values
Strings with backslash sequences
Variables
Data Type Conversions
Operators
Operator Precedence
Instructions
Expressions
Actions
Working with instructions
Aliases
3. Special registers
Counter registers
Status registers
First loop indicator
Date and time registers
Hardware counter
Division by zero
4. Interaction between WESCL and HTML-browser
HTML-browser to WESCL communication
WESCL to HTML-browser communication
V register
E register
Compile WESCL programs
5. WESCL Communication Agent (WCA)
Circular Buffer
Message Structure
Message Address
Message Body
Message Attachment
Sending Messages
Return Codes
Assigned Registers
Argument Registers
Control Registers
Status Registers
Data Registers
A. WESCL grammar
List of Examples
2-1. Expression examples
2-2. Assignment action type
2-3. A variable name action type
2-4. Multi action examples
2-5. String actions examples
2-6. Instruction with a single assignment action
2-7. Instruction with multi action
2-8. Variable name action
2-9. Instruction with a multi variable name action
2-10. Instruction with a mixed mode action
2-11. Instruction with a complex mixed mode action
2-12. Instruction with a string assignment action
3-1. Using counters
3-2. Using first loop indicator
4-1. Setting register by HTML-browser
4-2. Reading WESCL variables
4-3. Using V register
4-4. Using E register
5-1. Sending simple message
5-2. Sending complex message