Browse Source

prise en compte du flush dans les chaines de caractères

Faure Paul 2 months ago
parent
commit
f1214cfd12
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      Lex_Yacc/as.y

+ 4
- 0
Lex_Yacc/as.y View File

@@ -131,6 +131,10 @@ Print : tPRINT tOBRACE tSTR tCBRACE  {int i = 0;
131 131
                                           $3[i - decalage - 1] = '\n';
132 132
                                           previous = 'a';
133 133
                                           decalage++;
134
+                                        } else if (previous == '\\' && $3[i] == '0') {
135
+                                          $3[i - decalage - 1] = '\0';
136
+                                          previous = 'a';
137
+                                          decalage++;
134 138
                                         } else {
135 139
                                           $3[i-decalage] = $3[i];
136 140
                                           previous = $3[i];

Loading…
Cancel
Save