1
0

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

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

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");
}
}