summaryrefslogtreecommitdiffstats
path: root/test cases/frameworks/8 flex/lexer.l
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/frameworks/8 flex/lexer.l')
-rw-r--r--test cases/frameworks/8 flex/lexer.l13
1 files changed, 13 insertions, 0 deletions
diff --git a/test cases/frameworks/8 flex/lexer.l b/test cases/frameworks/8 flex/lexer.l
new file mode 100644
index 0000000..ca6513c
--- /dev/null
+++ b/test cases/frameworks/8 flex/lexer.l
@@ -0,0 +1,13 @@
+%{
+#include <stdlib.h>
+#include "parser.tab.h"
+
+extern int yylex(void);
+extern int yyerror();
+%}
+
+%option noyywrap nounput noinput
+
+%%
+("true"|"false") {return BOOLEAN;}
+. { yyerror(); }