Skip to content

Commit f9db607

Browse files
authored
Merge pull request rust-lang#134 from brauliobz/grammar_call_expr
Call expression grammar
2 parents 98bd568 + 07381a9 commit f9db607

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/expressions/call-expr.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Call expressions
22

3+
> **<sup>Syntax</sup>**
4+
> _CallExpression_ :
5+
> &nbsp;&nbsp; [_Expression_] `(` _CallParams_<sup>?</sup> `)`
6+
>
7+
> _CallParams_ :
8+
> &nbsp;&nbsp; [_Expression_]&nbsp;( `,` [_Expression_] )<sup>\*</sup> `,`<sup>?</sup>
9+
310
A _call expression_ consists of an expression followed by a parenthesized
411
expression-list. It invokes a function, providing zero or more input variables.
512
If the function eventually returns, then the expression completes. For
@@ -87,3 +94,5 @@ fn main() {
8794
Refer to [RFC 132] for further details and motivations.
8895

8996
[RFC 132]: https://github.com/rust-lang/rfcs/blob/master/text/0132-ufcs.md
97+
98+
[_Expression_]: expressions.html

0 commit comments

Comments
 (0)