Home Page   We Generate Your Software.
Products Services Company Technology Demo Contact Site Map Search
Please note: this document is currently under revision.
The information herein contained, while still valid, does not reflect the latest state of the described technology.
The Somusar/SoProTech[tm] Booklet Series
Volume IV

"somusar/Tefigel: A Tutorial Introduction"

Printer friendly

1. Introduction
2. Language Summary
3. Text File Components
4. Text File Processing
5. Modularity
6. Multilanguage Applicability
7. Generating Object-oriented Languages
8. Generating Internet-oriented Languages and Protocols
9. Generating Procedural Languages
10. Generating Scripting or Special-purpose Languages
11. Advanced Features and Topics
12. A More Extensive Example
13. Further Reading

Chapter 2 - Language Summary

Basic elements of Tefigel programs and scripts are text files and text lines, intermixed with Tefigel instructions and comments, and name spaces of string, numeric and boolean variables. In short, for the purpose of this document these elements can be defined as follows:

  • Text files: any human-readable single-byte characters file (typically, ASCII or ISO8859);

  • Text lines: a line of text within a text file;

  • Tefigel instructions: commands and control statements to steer the text file processing performed by Tefigel;

  • Tefigel comments: descriptive text lines to make the instructions easier to understand;

  • Markers: input characters that allow Tefigel to distinguish between normal text and instructions; markers can be dynamically associated with different characters;

  • Special characters: input characters that require Tefigel to take special actions, such as calling functions or performing name-value contents association; special actions can be dynamically associated with different characters;

  • Variables: symbolic names (placeholders) within a name space associated with string, numeric and boolean values;

  • Subroutines and functions: text files, containing Tefigel instructions, that can be CALLed, possibly with parameters, to accomplish a specific, repeatable subtask;

  • Packages and libraries: collection of logically related subroutines and functions, grouped together within one main directory (library) as one or more subdirectories (packages);

  • Filters: a special type of subroutines, to be run when a textual pattern associated with them matches an input row, or a part of it;

  • Name spaces: collections of variables that can be saved (PUSHed) and restored (POPped).

Traditional programming language constructs, such as control flow and arithmetic and boolean computation instructions, are of course also available in Tefigel. These constructs have been purposely designed and implemented in a very simple form for two reasons:
  1. To keep the set of new things to be learned by new Tefigel users as small as possible, in order to help them be more quickly ready to actually use Tefigel;

  2. To focus Tefigel design and implementation on functions that are more closely related to the main purpose of Tefigel, which consists in enabling the automated, efficient and reliable generation of source code files.

Finally, Tefigel's capabilities include simple constructs to control its input and output flows, enabling the processing of several input files, as well as the production of several output files.

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

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