RossNet

FunnelWeb

Tutorial

Developer

Reference
1 Introduction
2 Interface
3 Scanner
4 Parser
5 Analyser
6 Tangle
7 Weave
8 Shell
9 Commands
10 Glossary
11 References

SEARCH
FunnelWeb Reference Manual

8.5 How a Command Line is Processed

When FunnelWeb reads in a command line (from the console or a script file), it processes it in the following sequence:

  1. The command line is checked for non-printable characters. If there are any, they are flagged with a severe error.
  2. All dollar string substitution variables in the command line are replaced by their corresponding string. The command line is processed from left to right. Substitutions are performed non recursively.
  3. At this point, if the line is empty, or consists entirely of blanks, it is ignored and the interpreter moves to the next line.
  4. A severe error is generated if the line at this stage begins with a blank.
  5. If the first character of the line is "!", the line is a comment line and is ignored.
  6. The run of non-blanks commencing at the start of the line is compared case-insensitively to each of the legal command verbs. If the command is illegal, a severe error is generated, otherwise the command is processed.

Prev Up Next


Webmaster    Copyright © Ross N. Williams 1992,1999. All rights reserved.