From f1214cfd12d6735ba751f6f23dd61c79b92efe35 Mon Sep 17 00:00:00 2001 From: Faure Paul Date: Fri, 16 Jul 2021 16:03:17 +0200 Subject: [PATCH] =?UTF-8?q?prise=20en=20compte=20du=20flush=20dans=20les?= =?UTF-8?q?=20chaines=20de=20caract=C3=A8res?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Lex_Yacc/as.y | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Lex_Yacc/as.y b/Lex_Yacc/as.y index 5f49bb7..2261378 100644 --- a/Lex_Yacc/as.y +++ b/Lex_Yacc/as.y @@ -131,6 +131,10 @@ Print : tPRINT tOBRACE tSTR tCBRACE {int i = 0; $3[i - decalage - 1] = '\n'; previous = 'a'; decalage++; + } else if (previous == '\\' && $3[i] == '0') { + $3[i - decalage - 1] = '\0'; + previous = 'a'; + decalage++; } else { $3[i-decalage] = $3[i]; previous = $3[i];