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
2.1 Purpose
2.2 Usage
2.3 Description
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
19. Name Spaces
20. Miscellaneous
21. Further Reading

Chapter 2 - File Sections

2.1 - Purpose        top

An input file for Tefigel may contain one or more <file-section>'s of three types: text, Tefigel code, and comment blocks. File sections allow to improve readability of Tefigel files and can be freely defined within each Tefigel file in no particular order. By default the content of a Tefigel file whose name ends in ".tfg" is assumed to start with a <tefigel-section>. The content of a Tefigel file whose name does not end in ".tfg" is assumed to start with a <text-section>.

2.2 - Usage        top

Define a <text-section>:

   text
   <text-section>
   endtext
Define a <tefigel-section>:
   tefigel
   <tefigel-section>
   endtefigel
Define a <comment-section>:
   <comment-marker>\
   <comment-section>
   <comment-marker>/

2.3 - Description        top

A <file-section> consists of zero or more <logical-line>'s.

The content of a <text-section> is subject to textual substitution of <variable>'s and in-line function calls via <subprogram-reference>'s. Lines starting with the current <command-marker> are treated as <command>'s. Lines starting with the current <comment-marker> are treated as <comment-line>'s.

The content of a <tefigel-section> is processed as a sequence of <command>'s or subroutine and function calls via <subprogram-reference>'s. Lines starting with any current <instruction-marker>, possibly preceded by blanks and/or tabs, are processed as the corresponding <instruction>. In particular, lines starting with the current <comment-marker>, possibly preceded by blanks and/or tabs, are treated as <comment-line>'s.

The content of a <comment-section>, including its opening and closing delimiters, is treated as a sequence of <comment-line>'s.

Both <text-section>'s and <tefigel-section>'s may contain any number of <comment-section>'s.

[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