配列の添え字,次元チェックを追加

This commit is contained in:
otya128 committed 2015-06-12 21:53:39 +09:00
1 parent 1e51bd37ca
commit fd74c8b071
2 files changed
+34

No files matched your search

+17
View File
@@ -19,6 +19,14 @@ class SmileBasicError : Exception
super(message);
}
}
class SyntaxError : SmileBasicError
{
this()
{
this.errnum = 3;
super("Syntax error");
}
}
class TypeMismatch : SmileBasicError
{
this()
@@ -43,3 +51,12 @@ class ReturnWithoutGosub : SmileBasicError
super("RETURN without GOSUB");
}
}
class SubscriptOutOfRange : SmileBasicError
{
this()
{
this.errnum = 31;
super("Subscript out of range");
}
}