o collapse multiple !'s by using !+ and checking if yyleng is even or odd.
this allows us to simplify ! handling in parse.yacc
sawspace = FALSE;
} /* a command line arg */
-\, {
+, {
LEXTRACE(", ");
return(',');
} /* return ',' */
-\! {
- return('!'); /* return '!' */
+!+ {
+ if (yyleng % 2 == 1)
+ return('!'); /* return '!' */
}
= {
if (strcmp(yytext, "ALL") == 0) {
LEXTRACE("ALL ");
return(ALL);
+ } else {
+ LEXTRACE("ALIAS ");
+ return(ALIAS);
}
- LEXTRACE("ALIAS ");
- return(ALIAS);
}
[[:alnum:]][[:alnum:]_-]* {