Skip to content

Commit

Permalink
Call expression grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
brauliobz committed Oct 14, 2017
1 parent 7bfc70e commit 4e5e5dc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/expressions/call-expr.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Call expressions

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

[RFC 132]: https://github.com/rust-lang/rfcs/blob/master/text/0132-ufcs.md

[_Expression_]: expressions.html

0 comments on commit 4e5e5dc

Please sign in to comment.