Adding variable information on errors

This commit is contained in:
Anthony Debucquoy
2025-03-22 23:06:41 +01:00
parent a22bc69491
commit 102f08c2cf
3 changed files with 14 additions and 6 deletions

View File

@ -15,3 +15,11 @@ afficher l;
# afficher x + 3, 3 + y;
# x = -x;
# afficher x;
# entier x = 2 + 3 * 4;
# entier y = 3 * 4 + 2;
liste l = [1, 2, 3];
afficher l[2];

View File

@ -3,13 +3,13 @@ entier age = 23;
booléen majeur = vrai;
booléen ingénieur;
majeur = faux;
afficher nom, age, majeur;
#Ces lignes devraient donner une erreur
# Ces lignes devraient donner une erreur
# majeur = 42;
# afficher majeur;