![avatar](http://wklejamy.pl/img/default-avatar.png)
Untitled
Guest 201 25th Feb, 2024
%{
#include "y.tab.h"
%}
%%
"<h1>" { return H1_OPEN; }
"</h1>" { return H1_CLOSE; }
"<h2>" { return H2_OPEN; }
"</h2>" { return H2_CLOSE; }
"<p>" { return P_OPEN; }
"</p>" { return P_CLOSE; }
"<b>" { return B_OPEN; }
"</b>" { return B_CLOSE; }
"<br/>" { return BR; }
"<a" { return A_OPEN; }
"</a>" { return A_CLOSE; }
"<img" { return IMG_OPEN; }
">" { return TAG_CLOSE; }
"/>" { return SELF_CLOSE; }
"href=\"" { return HREF; }
"src=\"" { return SRC; }
"alt=\"" { return ALT; }
"width=\"" { return WIDTH; }
"height=\"" { return HEIGHT; }
"\"" { return QUOTE; }
[^<>]+ { return TEXT; }
%%
To share this paste please copy this url and send to your friends
RAW Paste Data