X-Git-Url: https://git.cworth.org/git?p=ttt;a=blobdiff_plain;f=src%2Fttt-lex.l;fp=src%2Fttt-lex.l;h=2a9d8e247908e33e5754a850492d9f52c3243ded;hp=0000000000000000000000000000000000000000;hb=c6398c6a1b59f6eddefc9f9ce577017b15677251;hpb=907321c065fb1383e800f0794981df91d4327f57 diff --git a/src/ttt-lex.l b/src/ttt-lex.l new file mode 100644 index 0000000..2a9d8e2 --- /dev/null +++ b/src/ttt-lex.l @@ -0,0 +1,16 @@ + /* Definitions */ + +%option reentrant +%option noyywrap + +%{ +#include "ttt-token.h" +%} + +%% + + /* Rules */ + +\r\n return TTT_TOKEN_NEWLINE; +[^ \t\r\n][^ \t\r\n]* return TTT_TOKEN_STRING; +[ \t\r\n] ;