diff options
Diffstat (limited to 'ocml.l')
-rw-r--r-- | ocml.l | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -0,0 +1,18 @@ +%{ +#include "ocml.tab.h" +extern int yylval; +%} + +%% +[0-9]+ yylval = atoi(yytext); return tNum; +sk return tSkip; +ch return tChain; +sl return tSlip; +sc return tSingle; +hdc return tHalfDouble; +dc return tDouble; +tr return tTriple; +\{ return tStartBlock; +\} return tEndBlock; +[ \t\n]+ ; +. return tErr; |