summaryrefslogtreecommitdiff
path: root/project2/files/configuration.ll
diff options
context:
space:
mode:
Diffstat (limited to 'project2/files/configuration.ll')
-rw-r--r--project2/files/configuration.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/project2/files/configuration.ll b/project2/files/configuration.ll
index b3c8de7..aa04456 100644
--- a/project2/files/configuration.ll
+++ b/project2/files/configuration.ll
@@ -1,10 +1,15 @@
%option batch
%option c++
%option noyywrap
+%option 8bit
+%option stack
+%option yylineno
%option yyclass="configFlexLexer"
+%option prefix="configBase"
%{
#include "configFlexLexer.h"
+#pragma GCC diagnostic ignored "-Wsign-compare"
%}
element [a-zA-Z][a-zA-Z0-9_-]*
@@ -62,3 +67,10 @@ value [^ ][^\r\n]*
BEGIN(INITIAL);
}
+<*>[ \t\r\n\f] {
+}
+
+<*>. {
+ throw std::runtime_error("Unexpected input");
+}
+