1
0

Implement BIN$

This commit is contained in:
otya128
2016-12-29 20:45:43 +09:00
parent 20889c28e1
commit e701fa5704
2 changed files with 46 additions and 7 deletions

View File

@@ -1926,15 +1926,23 @@ class Parser
{
auto func = new CallFunction(token.value.stringValue, lex.location);
node = func;
//関数呼び出しだった
while(true)
lex.popFront();
if(lex.front().type != TokenType.RParen)
{
lex.popFront();
token = lex.front();
//関数呼び出しだった
while(true)
{
token = lex.front();
if(token.type == TokenType.RParen) break;
func.addArg(expression());
if(lex.front().type == TokenType.RParen) break;
if(lex.front().type == TokenType.RParen) break;
if(lex.front().type != TokenType.Comma)
{
syntaxError();
break;
}
lex.popFront();
}
}
}
else