summaryrefslogtreecommitdiff
path: root/tools/d2c/format/tokens.l
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-01-30 17:23:16 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-01-30 17:23:16 (GMT)
commit792b330c1bbe573a591687d25e14d4cd1eccd3c6 (patch)
tree9a3e0955205c0221ea5db03b1f3a4d56846efed2 /tools/d2c/format/tokens.l
parentc922b6b9c841a97dd948755658cff07b2c6762ff (diff)
Introduced a format switch to distinguish different kinds of definitions.
Diffstat (limited to 'tools/d2c/format/tokens.l')
-rw-r--r--tools/d2c/format/tokens.l26
1 files changed, 26 insertions, 0 deletions
diff --git a/tools/d2c/format/tokens.l b/tools/d2c/format/tokens.l
new file mode 100644
index 0000000..12ca7f0
--- /dev/null
+++ b/tools/d2c/format/tokens.l
@@ -0,0 +1,26 @@
+
+%top {
+
+#include "grammar.h"
+
+}
+
+
+%option noyywrap
+%option nounput
+%option noinput
+%option yylineno
+%option noyy_top_state
+
+%x bsize
+
+
+%%
+
+
+" " { }
+
+[A-Za-z0-9_]* { yylvalp->string = strdup(yytext); return OPS_TYPE; }
+
+
+%%