diff options
[CI/PA1] Unknown characters are printed out
1 files changed, 1 insertions, 0 deletions
| -rw-r--r-- | Year 3/Compilers, Introduction/coolc-spim/my-code/coursework/pa1/cool.flex | 1 |
diff --git a/Year 3/Compilers, Introduction/coolc-spim/my-code/coursework/pa1/cool.flex b/Year 3/Compilers, Introduction/coolc-spim/my-code/coursework/pa1/cool.flex index 942b3a7..c6e99b9 100644 --- a/Year 3/Compilers, Introduction/coolc-spim/my-code/coursework/pa1/cool.flex +++ b/Year 3/Compilers, Introduction/coolc-spim/my-code/coursework/pa1/cool.flex @@ -144,5 +144,6 @@ yylval types: [\n\r] { curr_lineno++; } [ \f\t\v] { } +. { cool_yylval.error_msg = yytext; return (ERROR); } %% |
