1
0

Implement USE

This commit is contained in:
otya128
2016-12-23 19:37:33 +09:00
parent a05c1558fa
commit f1b5a3852e
3 changed files with 45 additions and 2 deletions

View File

@@ -2,6 +2,8 @@ module otya.smilebasic.error;
import std.exception;
import std.string;
import std.conv;
import otya.smilebasic.token;
class SmileBasicError : Exception
{
int errnum;
@@ -154,6 +156,14 @@ class DuplicateVariable : SmileBasicError
super("Duplicate variable");
}
}
class DuplicateFunction : SmileBasicError
{
this(int slot, SourceLocation loc)
{
this.errnum = 19;
super(slot, loc.line, "Duplicate function");
}
}
class ReturnWithoutGosub : SmileBasicError
{
this()