1
0

OPTIONを実装

This commit is contained in:
otya128
2016-09-02 20:57:36 +09:00
parent 2f50fc5ba9
commit 1bfb655e74
4 changed files with 64 additions and 2 deletions

View File

@@ -847,6 +847,22 @@ class Parser
return node;
}
}
if (name == "OPTION")
{
if (token.type != TokenType.Iden)
{
syntaxError();
return null;
}
auto arg = std.uni.toUpper(token.value.stringValue);
if (arg != "STRICT" && arg != "DEFINT" && arg != "TOOL")
{
syntaxError();
return null;
}
lex.popFront();
return new Option(arg, lex.location);
}
//命令呼び出し
auto func = new CallFunctionStatement(name, lex.location);
node = func;