Adding error handling support

This commit is contained in:
Anthony Debucquoy
2025-04-28 15:38:42 +02:00
parent d73a5be3f5
commit e2e058c8ac
4 changed files with 119 additions and 18 deletions

14
examples/errors.spf Normal file
View File

@ -0,0 +1,14 @@
blop x = blop #SyntaxError
# afficher y; #UnknownVariable
# texte z;
# afficher z; #UninitializedVariable
# texte a;
# texte a; #AlreadyDefined
# entier b = "test"; #IncompatibleType
# liste c = [0, 1, 2];
# afficher c[10]; #IndexError