Home Page   We Generate Your Software.
Products Services Company Technology Demo Contact Site Map Search
The Somusar/SoProTech[tm] Booklet Series
Volume VI

"somusar/Tefigel: Reference Guide"

Printer friendly


Contents
1. Introduction
2. File Sections
3. Commands and Instructions
4. Markers
5. Comments
6. Special Characters
7. Variables
8. Arithmetic Computation
9. Boolean Computation
10. Control Flow
11. Subroutines and Functions
12. Built-in Functions
13. Input and Output
14. Packages and Libraries
15. Tag File Processing
16. CSV File Processing
17. Filters
18. Links and Traps
18.1 Purpose
18.2 Usage
18.3 Description
19. Name Spaces
20. Miscellaneous
21. Further Reading

Chapter 18 - Links and Traps

18.1 - Purpose        top

Associate Tefigel processors (subroutines) with input character strings resembling identifiers.

18.2 - Usage        top

Associate a parametrical function call with a character string:

   link <link>=<subprogram-reference>
Associate a non-parametrical function call with a character string:
   trap <trap>=<subprogram-reference>
Disassociate function call from character string:
   unlink <link>
   untrap <trap>
Activate implicit call to a parametrical function from an input line (both text and command line):
   text text text text text text text text
   text text text <link> text text text
   text text text text text text text text
   text text text <link>(par1, par2, ...) text text text
   text text text text text text text text
Activate implicit call to a non-parametrical function from an input line (both text and command line):
   text text text text text text text text
   text text <trap> text text text
   text text text text text text text text
   <trap>
   text text text text text text text text

18.3 - Description        top

A <link> is a <variable> associated with a <file-reference>. On encountering a <link> in its input, Tefigel calls the associated <file-reference> providing the given arguments, if any, and replaces in output the <link> call with the string returned by the called function, if any.

A <trap> is a <variable> associated with a <file-reference>. On encountering a <trap> in its input, Tefigel calls the associated <file-reference> without arguments, and replaces in output the <link> call with the string returned by the called function, if any.

[Previous chapter]    [Next chapter]    [Back to top]

http:// www.somusar.com  / doc  / booklets  / tefigel_ref  - Powered by SoProMach
Copyright © 2003-2012 Somusar - Trademarks - Legal - Privacy - Webmaster