%{
#include <malloc.h>
#include <dfa.h>
#include <y.tab.h>
%}
QSTR	\'(.|(\\\'))*\'
COMMENT	\#.*
%%
":-"	return GOESTO ;
{QSTR}	{
			static char txt[256] ;
			int l = 0 ;
			int i = 1 ;
			int rl = strlen(yytext) - 1 ;
			while(i < rl)
			{
				if (yytext[i] == '\'')
				{
					i += 2 ;
					txt[l++] = '\'' ;
				}
				else
				{
					txt[l++] = yytext[i++] ;
				}
			}
			txt[l] = 0 ;
			yylval.d = dfa_string(0,txt,0) ;
			return STR ;
		}
[ \t\n]		;
{COMMENT}	;
%%
