Implement CALL SPRITE
This commit is contained in:
1 parent
803538d358
commit
4eb6a1fc98
7 files changed
+190
-61
No files matched your search
@@ -939,6 +939,23 @@ class Parser
|
||||
}
|
||||
}
|
||||
lex.popFront();
|
||||
if (token.type == TokenType.Call)
|
||||
{
|
||||
if (lex.front.type == TokenType.Iden)
|
||||
{
|
||||
auto arg = std.uni.toUpper(lex.front.value.castString);
|
||||
if (arg == "SPRITE")
|
||||
{
|
||||
node = new CallSprite(lex.location);
|
||||
break;
|
||||
}
|
||||
if (arg == "BG")
|
||||
{
|
||||
node = new CallBG(lex.location);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
//命令呼び出し
|
||||
auto func = new CallFunctionStatement(name, lex.location);
|
||||
node = func;
|
||||
|
||||
Reference in new issue
Block a user