%{
#include <stdio.h>
#include <unistd.h>
#include "phonemes.h"
%}
%%
"/"	return lSYLLABLE;
[ \t]	return lWORD_BREAK;
[\n]	return lEND_LIST;
aa	return pAA;
ae	return pAE;
ah	return pAH;
ao	return pAO;
aw	return pAW;
ay	return pAY;
axr/[^r]	return pAXR;
axp/[^p]	return pAXP;
ax	return pAX;
eh	return pEH;
ey	return pEY;
el	return pEL;
em	return pEM;
en	return pEN;
exr	return pEXR;
ih	return pIH;
iy	return pIY;
ixr/[^r]	return pIXR;
ix	return pIX;
ow	return pOW;
oy	return pOY;
oxr	return pOXR;
uh	return pUH;
uw	return pUW;
uxr	return pUXR;
yu	return pYU;
yy	return pYY;
hh	return pHH;
hx	return pHX;
ll	return pLL;
lx	return pLX;
rr	return pRR;
rx	return pRX;
ww	return pWW;
wh	return pWH;
mm	return pMM;
nn	return pNN;
ng	return pNG;
dh	return pDH;
dd	return pDD;
dx	return pDX;
ff	return pFF;
ss	return pSS;
sh	return pSH;
th	return pTH;
tt	return pTT;
tq	return pTQ;
vv	return pVV;
zz	return pZZ;
zh	return pZH;
bb	return pBB;
gg	return pGG;
gp	return pGP;
kk	return pKK;
kp	return pKP;
pp	return pPP;
ch	return pCH;
jj	return pJJ;
.	{printf("Unknown %s\n",yytext);return lSYLLABLE;}
%%



















