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

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

<end tag='reqatt'><![CDATA[
        printf("reqatt pcdata: %s\n", {#PCDATA});
	printf("reqatt att: (%s)\n",
	   {att} == {att=val1} ? "val1" :
	   {att} == {att=val2} ? "val2" :
	   {att} == {!att} ? "no att given" : "error in attribute");
]]></end>
<end tag='defatt'><![CDATA[
        printf("defatt pcdata: %s\n", {#PCDATA});
	printf("defatt att: (%s)\n",
	   {att} == {att=val1} ? "val1" :
	   {att} == {att=val2} ? "val2" :
	   {att} == {!att} ? "no att given" : "error in attribute");

]]></end>
<end tag='optatt'><![CDATA[
        printf("optatt pcdata: %s\n", {#PCDATA});
	printf("optatt att: (%s)\n",
	   {att} == {att=val1} ? "val1" :
	   {att} == {att=val2} ? "val2" :
	   {att} == {!att} ? "no att given" : "error in attribute");

]]></end>


<end tag='foo'><![CDATA[
        printf("foo pcdata: %s\n", {#PCDATA});
]]></end>


<main><![CDATA[
int main(int argc, char **argv)
{
	int retval = yylex();
	printf("retval = %d\n", retval);
        return retval;
}
]]></main>

</actions>
