Commit 39a8ce6b by Jamie Madill Committed by Shannon Woods

Lexer does not need to handle unknown-char case.

It is handled by the preprocessor. Added an assert. TRAC #23158 Signed-off-by: Nicolas Capens Merged-by: Jamie Madill Authored-by: alokp@chromium.org git-svn-url: https://code.google.com/p/angleproject/source/detail?r=2194 Review URL: https://codereview.appspot.com/8653052
parent 96de824e
......@@ -364,9 +364,9 @@ O [0-7]
}
<FIELDS>[ \t\v\f\r] {}
[ \t\v\n\f\r] { }
<*><<EOF>> { yyterminate(); }
<*>. { context->warning(yylineno, "Unknown char", yytext, ""); return 0; }
[ \t\v\n\f\r] { }
<*><<EOF>> { yyterminate(); }
<*>. { assert(false); return 0; }
%%
......
......@@ -1961,7 +1961,7 @@ YY_RULE_SETUP
case 226:
/* rule 226 can match eol */
YY_RULE_SETUP
{ }
{ }
YY_BREAK
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(FIELDS):
......@@ -1969,7 +1969,7 @@ case YY_STATE_EOF(FIELDS):
YY_BREAK
case 227:
YY_RULE_SETUP
{ context->warning(yylineno, "Unknown char", yytext, ""); return 0; }
{ assert(false); return 0; }
YY_BREAK
case 228:
YY_RULE_SETUP
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment