Skip to content

Commit

Permalink
minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
oboroc committed Jun 9, 2019
1 parent f615d6e commit 8f1ba97
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/scanner.l
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 91,7 @@ include BEGIN(incl);

/* eliminate backing up for the hexadecimal rule above */
[0-9][0-9a-f]* {
fprintf(stderr, "Invalid token: %s\n", yytext);
fprintf(stderr, "ERROR: invalid token: %s\n", yytext);
}

/* rule for simple float */
Expand All @@ -101,12 101,12 @@ include BEGIN(incl);

/* eliminate backing up by capturing '1.' */
[0-9] "." {
fprintf(stderr, "Invalid token: %s\n", yytext);
fprintf(stderr, "ERROR: invalid token: %s\n", yytext);
}

/* eliminate backing up by capturing '.1' */
"."[0-9] {
fprintf(stderr, "Invalid token: %s\n", yytext);
fprintf(stderr, "ERROR: invalid token: %s\n", yytext);
}

" " |
Expand Down Expand Up @@ -215,7 215,7 @@ in {

<*>.|\n {
/* default action, should always be the last */
fprintf(stderr, "Flex default rule fall-through: \"%s\" - please create new rules to capture this input\n", yytext);
fprintf(stderr, "ERROR: Flex default rule fall-through: \"%s\" - please create new rules to capture this input\n", yytext);
}

%%

0 comments on commit 8f1ba97

Please sign in to comment.