Adding error handling support
This commit is contained in:
14
examples/errors.spf
Normal file
14
examples/errors.spf
Normal 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
|
Reference in New Issue
Block a user