1. Using tags
2. Tag list
3. One little example
4. Tag definition
4.1 call
4.2 f
4.3 glocal
4.3.1 Using nested glocals
4.4 mod
4.5 obj
5. Creating components
5.1 Definition
5.2 Implementation
5.3 Taking advantage of the C++ implementation
5.4 Calling functags
5.5 Extending the functor classes
5.6 Adding content to the functor
5.7 Grabbing the functor address
Top Up Prec

3. One little example

Next

here is a little code snippet to get started.


#include <stdio.h>

<mod>
int main (int argc, char *argv[])
{
	<glocal>
	int count;
	</glocal>
	glocal.count = 0;
	<call loadfile>("/tmp/file",true);
		<f oneline>
			glocal.count++;
		</f>
		<f empty>
			printf ("The file is empty\n");
		</f>
	</call>
	return 0;
}
</mod>

One little example

This little program counts the number of lines in a text file and print a message if the file is empty.
Top Up Prec

Next
One big HTML document