1
0

Implement CALL SPRITE

This commit is contained in:
otya128
2016-12-31 13:40:44 +09:00
parent 803538d358
commit 4eb6a1fc98
7 changed files with 190 additions and 61 deletions

View File

@@ -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;