]> git.cworth.org Git - ttt/blobdiff - src/ttt-lex.l
2005-11-22 Carl Worth <cworth@cworth.org>
[ttt] / src / ttt-lex.l
diff --git a/src/ttt-lex.l b/src/ttt-lex.l
new file mode 100644 (file)
index 0000000..2a9d8e2
--- /dev/null
@@ -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]              ;