diff options
Diffstat (limited to 'tools/d2c/hooks/tokens.l')
-rw-r--r-- | tools/d2c/hooks/tokens.l | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tools/d2c/hooks/tokens.l b/tools/d2c/hooks/tokens.l new file mode 100644 index 0000000..6aebe87 --- /dev/null +++ b/tools/d2c/hooks/tokens.l @@ -0,0 +1,26 @@ + +%top { + +#include "grammar.h" + +} + + +%option noyywrap +%option nounput +%option noinput +%option yylineno +%option noyy_top_state + + +%% + + +" " { } + +[ \t\n]+ { } +[a-z_][a-z0-9_]* { yylvalp->string = strdup(yytext); return NAME; } +"=" { return EQ; } + + +%% |