We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9947ca commit 731b370Copy full SHA for 731b370
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: eec259f625311932c47829bd7c978f9670ef6fea
+refs/heads/master: 3aaae2a881ed0e8c74a4a5b36e4fa4624d48eda0
trunk/src/comp/front/parser.rs
@@ -268,6 +268,19 @@ io fn parse_bottom_expr(parser p) -> @ast.expr {
268
auto n = parse_name(p, i);
269
hi = n.span;
270
ex = ast.expr_name(n, none[ast.def], none[@ast.ty]);
271
+ alt (p.peek()) {
272
+ case (token.LPAREN) {
273
+ // Call expr.
274
+ auto pf = parse_expr;
275
+ auto es = parse_seq[@ast.expr](token.LPAREN,
276
+ token.RPAREN,
277
+ some(token.COMMA),
278
+ pf, p);
279
+ ex = ast.expr_call(@spanned(lo, hi, ex),
280
+ es.node, none[@ast.ty]);
281
+ hi = es.span;
282
+ }
283
284
}
285
286
case (token.LPAREN) {
0 commit comments