1
0

Add StackOver/UnderFlow

This commit is contained in:
otya128
2016-12-04 16:25:12 +09:00
parent 654cd1b439
commit 46fb83483b
2 changed files with 19 additions and 6 deletions

View File

@@ -56,6 +56,22 @@ class IllegalFunctionCall : SmileBasicError
super("Illegal function call(" ~ func ~ ")");
}
}
class StackOverFlow : SmileBasicError
{
this()
{
this.errnum = 5;
super("Stack overflow");
}
}
class StackUnderFlow : SmileBasicError
{
this()
{
this.errnum = 6;
super("Stack underflow");
}
}
class TypeMismatch : SmileBasicError
{
this()