<!DOCTYPE actions SYSTEM "flexml-act.dtd">
<actions>

<top><![CDATA[
#include <stdio.h>
]]></top>

<start tag='foo'><![CDATA[
        printf("foo attributes name='%s' toz='%s' gaz='%s'\n", {name}, {toz}, {gaz});
]]></start>

<start tag='bar'><![CDATA[
        printf("bar attributes name='%s'\n", {name});
]]></start>

<main><![CDATA[
int main(int argc, char **argv) {
	FILE *infile;
	YY_BUFFER_STATE buff;
	int retval;
	
	int i;
	
	for (i=0; i<3; i++) {
		printf("Run %d\n",i);
		infile=fopen(argv[1],"r");
		buff=yy_create_buffer(infile,10);
		yy_switch_to_buffer(buff);
		retval = yylex();
		yy_delete_buffer(buff);
		fclose(infile);
	}
	
        return retval;
}
]]></main>

</actions>
