From bd174712cd01429682377f9baabe173049112c47 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 19 Oct 2023 11:17:08 +0300 Subject: [CI/PA1] Unknown characters are printed out --- .../Compilers, Introduction/coolc-spim/my-code/coursework/pa1/cool.flex | 1 + 1 file changed, 1 insertion(+) 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); } %% -- cgit v1.3.1-26-gb76a