Command interpreter 1.2.1
Jean-Marc Drézet
Contents
1
Introduction
1.1
Description of the command interpreter
1.2
The mini-interpreter
2
Initialization file
2.1
Internal parameters
2.2
Running modes
2.3
External parameters
2.4
Data, results and commands directories
2.5
Definition of objects
2.6
Definition of structures
2.7
Command names
2.8
Greeting message
2.9
Messages
2.10
Initial program
2.11
Inclusion of files
2.12
Programs
3
Programming with the interpreter
3.1
Introduction
3.2
Parameters
3.3
Numeric evaluation of expressions
3.4
Conditions
3.5
Command files
3.5.1
Definition
3.5.2
Simulation of loops
3.6
Programs
3.6.1
Structure of programs
3.6.2
Labels, conditional jumps and loops
3.6.3
Questions and answers inside programs
3.7
Monitor files
4
Commands
4.1
Introduction
4.2
Structure of commands
5
Objects and structures
5.1
Object types
5.2
Objects
5.3
How to create and access objects
5.4
Aliases of object types
5.5
Objects of undefined data type
5.6
Destruction of objects
5.7
Storage of objects
5.8
Structure types
5.9
Structures
5.10
How to create and access structures
5.11
Destruction of structures
6
Expression evaluator
6.1
Variables
6.2
Functions
6.3
Objects
6.4
Numerical expressions as arguments
7
Question files
8
List of available commands
9
Other useful functions in the command interpreter
9.1
Memory management
9.2
Other functions
10
Complex numbers
10.1
Representation of complex numbers
10.2
Functions using complex numbers
11
Tutorial
11.1
How to use the interpreter
11.1.1
The main function and related functions
11.1.2
The definition of command and function names
11.1.3
How to glue several applications in a single program
11.1.4
How to modify applications using version 1.1
11.2
Examples
11.2.1
Example 1
11.2.2
Example 2
11.2.3
Example 3
11.2.4
Example 4