Files
libdice/lib/dice_lexer.l
T
2018-02-13 19:27:38 +00:00

10 lines
141 B
Plaintext

%{
#include "dice.h"
#include "dice_parse.h"
%}
%%
[0-9]+ { yylval.integer = atoi(yytext); return TOK_INTEGER; }
[d] return TOK_DICESEP;
%%