Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commitbd174712cd01429682377f9baabe173049112c47 (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-10-19 11:17:08 +0300
Committer
 Syndamia <kamen@syndamia.com>
2023-10-19 11:17:08 +0300
Files8a138360c4d0205ced368c1d6cf52c7d6041161b
uni-projects-bd174712cd01429682377f9baabe173049112c47.tar
uni-projects-bd174712cd01429682377f9baabe173049112c47.tar.gz
uni-projects-bd174712cd01429682377f9baabe173049112c47.zip
Parent60ef31d7b8ef34acf54cd82777e11828297dbdff (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.flex1
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); }
%%