$args =
[];
$this->stream->
expect(Token::PUNCTUATION_TYPE, '(', 'A list of arguments must begin with an opening parenthesis'
);
while (!
$this->stream->current->
test(Token::PUNCTUATION_TYPE, ')'
)) { if ($args) { $this->stream->
expect(Token::PUNCTUATION_TYPE, ',', 'Arguments must be separated by a comma'
);
} $args[] =
$this->
parseExpression();
} $this->stream->
expect(Token::PUNCTUATION_TYPE, ')', 'A list of arguments must be closed by a parenthesis'
);
return new Node\
Node($args);
}}