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 eec259f commit 3aaae2aCopy full SHA for 3aaae2a
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