diff options
| Commit | bd174712cd01429682377f9baabe173049112c47 (patch) | |
|---|---|---|
| Author | 2023-10-19 11:17:08 +0300 | |
| Committer | 2023-10-19 11:17:08 +0300 | |
| Files | 8a138360c4d0205ced368c1d6cf52c7d6041161b | |
| uni-projects-bd174712cd01429682377f9baabe173049112c47.tar uni-projects-bd174712cd01429682377f9baabe173049112c47.tar.gz uni-projects-bd174712cd01429682377f9baabe173049112c47.zip | ||
| Parent | 60ef31d7b8ef34acf54cd82777e11828297dbdff (diff) | |
[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); } %% |
