This commit is contained in:
Russ Cox 2008-01-30 10:30:45 -05:00
commit 54dd92bebc
12 changed files with 50 additions and 48 deletions

View file

@ -54,9 +54,9 @@ main(int argc, char **argv)
{
int i;
BEGIN Normal; /* Starts yylex off in the right state */
if (argc==1) {
yyin = stdin;
BEGIN Normal; /* Starts yylex off in the right state */
yylex();
}
else for (i=1; i<argc; i++) {
@ -65,6 +65,7 @@ main(int argc, char **argv)
fprintf(stderr,"can't open %s\n",argv[i]);
exit(1);
}
BEGIN Normal; /* Starts yylex off in the right state */
yylex();
}
exit(0);