示例#1
0
        private CallNode parseCall()
        {
            var call = new CallNode(parseIdent());

            expect(TokenType.LPAREN);
            next();

            while (more() && current().Type != TokenType.RPAREN)
            {
                call.AddArgument(parseExpression());

                if (accept(TokenType.COMMA))
                {
                    next();
                    expectNot(TokenType.RPAREN);
                }
            }

            expect(TokenType.RPAREN);
            next();

            return(call);
        }