Code

frontend: Added flex/bison based parser skeleton.
[sysdb.git] / src / tools / sysdb / scanner.l
index 43b248d0f470b1c5f8dc39ea0ff59a14695d57d3..07a941370d9eb5f419674806544d9337f3f21f36 100644 (file)
  */
 
 %{
+
+/*
+ * This is a simplified version of frontend/scanner.l. The only purpose is to
+ * find queries (terminated by semicolon).
+ */
+
 #include "tools/sysdb/input.h"
 
 #ifdef YY_INPUT
        } while (0)
 
 static sdb_input_t *sdb_input;
+
 %}
 
 %option interactive
+%option 8bit
 %option yylineno
+%option nodefault
 %option noyywrap
 %option verbose
+%option warn
 
 %%