Renamed src/parser.lex -> src/parser.l.
authorFlorian Forster <sifnfors@faui02h.informatik.uni-erlangen.de>
Wed, 7 Feb 2007 14:09:44 +0000 (15:09 +0100)
committerFlorian Forster <sifnfors@faui02h.informatik.uni-erlangen.de>
Wed, 7 Feb 2007 14:09:44 +0000 (15:09 +0100)
src/parser.l [new file with mode: 0644]
src/parser.lex [deleted file]

diff --git a/src/parser.l b/src/parser.l
new file mode 100644 (file)
index 0000000..1d23805
--- /dev/null
@@ -0,0 +1,29 @@
+WHITE_SPACE [\ \t\b]
+ALNUM [A-Za-z0-9_]
+QUOTED_STRING \"([^\"]+|\\.)*\"
+UNQUOTED_STRING {ALNUM}+
+HEX_NUMBER 0[xX][0-9a-fA-F]+
+OCT_NUMBER 0[0-7]+
+DEC_NUMBER [\+\-]?[0-9]+
+FLOAT_NUMBER [\+\-]?[0-9]*\.[0-9]+([eE][\+\-][0-9]+)?
+NUMBER ({FLOAT_NUMBER}|{HEX_NUMBER}|{OCT_NUMBER}|{DEC_NUMBER})
+BOOL_TRUE (true|yes|on)
+BOOL_FALSE (false|no|off)
+COMMENT #.*
+
+%%
+{WHITE_SPACE}  |
+{COMMENT}      {/* nothing */}
+
+\n                     {return (EOL);}
+"/"                    {return (SLASH);}
+"<"                    {return (OPENBRAC);}
+">"                    {return (CLOSEBRAC);}
+{NUMBER}               {yylval.number = strtod (yytext, NULL); return (NUMBER);}
+{BOOL_TRUE}            {yylval.boolean = 1; return (TRUE);}
+{BOOL_FALSE}           {yylval.boolean = 0; return (FALSE);}
+
+{QUOTED_STRING}                {yylval.string = yytext; return (QUOTED_STRING);}
+{UNQUOTED_STRING}      {yylval.string = yytext; return (UNQUOTED_STRING);}
+
+%%
diff --git a/src/parser.lex b/src/parser.lex
deleted file mode 100644 (file)
index 1d23805..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-WHITE_SPACE [\ \t\b]
-ALNUM [A-Za-z0-9_]
-QUOTED_STRING \"([^\"]+|\\.)*\"
-UNQUOTED_STRING {ALNUM}+
-HEX_NUMBER 0[xX][0-9a-fA-F]+
-OCT_NUMBER 0[0-7]+
-DEC_NUMBER [\+\-]?[0-9]+
-FLOAT_NUMBER [\+\-]?[0-9]*\.[0-9]+([eE][\+\-][0-9]+)?
-NUMBER ({FLOAT_NUMBER}|{HEX_NUMBER}|{OCT_NUMBER}|{DEC_NUMBER})
-BOOL_TRUE (true|yes|on)
-BOOL_FALSE (false|no|off)
-COMMENT #.*
-
-%%
-{WHITE_SPACE}  |
-{COMMENT}      {/* nothing */}
-
-\n                     {return (EOL);}
-"/"                    {return (SLASH);}
-"<"                    {return (OPENBRAC);}
-">"                    {return (CLOSEBRAC);}
-{NUMBER}               {yylval.number = strtod (yytext, NULL); return (NUMBER);}
-{BOOL_TRUE}            {yylval.boolean = 1; return (TRUE);}
-{BOOL_FALSE}           {yylval.boolean = 0; return (FALSE);}
-
-{QUOTED_STRING}                {yylval.string = yytext; return (QUOTED_STRING);}
-{UNQUOTED_STRING}      {yylval.string = yytext; return (UNQUOTED_STRING);}
-
-%%