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

<actions>

<top><![CDATA[
#include <unistd.h>
#include <stdio.h>

char* terminator = ".";
]]></top>

<start tag='line'><![CDATA[ switch ({type}) {
	case {!type}: terminator = "."; break;
	case {type=normal}: terminator = "."; break;
	case {type=question}: terminator = "??"; break;
	case {type=punch-line}: terminator = "!!"; break;
} ]]></start>

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

<start tag='suspense'><![CDATA[ sleep(2); ]]></start>

</actions>
