ossp-pkg/l2/l2_spec_scan.l 1.3 -> 1.4
--- l2_spec_scan.l 2001/11/08 09:28:35 1.3
+++ l2_spec_scan.l 2001/11/08 09:33:37 1.4
@@ -55,20 +55,16 @@
%%
- /* local variables */
- char caStr[2048];
- char *cpStr = NULL;
-
- /*
- * Whitespaces
- */
+ /* local variables */
+ char caStr[2048];
+ char *cpStr = NULL;
+
+ /* whitespaces */
[ \t\n]+ {
/* NOOP */
}
- /*
- * C-style strings ("...")
- */
+ /* C-style strings ("...") */
\" {
cpStr = caStr;
BEGIN(str);
@@ -114,24 +110,18 @@
*cpStr++ = yytext[1];
}
- /*
- * Operators
- */
+ /* operators */
"->" {
return T_OP_ARROW;
}
- /*
- * Identifiers
- */
+ /* identifiers */
[a-zA-Z][a-zA-Z0-9_-]* {
yylval->cpValue = strdup(yytext);
return T_ID;
}
- /*
- * Anything else is returned as is...
- */
+ /* anything else is returned as is... */
.|\n {
return yytext[0];
}
|
|