summaryrefslogtreecommitdiff
path: root/doc/reference/ReferencePartAppendix.tex
diff options
context:
space:
mode:
Diffstat (limited to 'doc/reference/ReferencePartAppendix.tex')
-rw-r--r--doc/reference/ReferencePartAppendix.tex8
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/reference/ReferencePartAppendix.tex b/doc/reference/ReferencePartAppendix.tex
index a7a100699d..f5f6a74c78 100644
--- a/doc/reference/ReferencePartAppendix.tex
+++ b/doc/reference/ReferencePartAppendix.tex
@@ -76,6 +76,7 @@ grammar.
| [SimpleExpr `.'] id `=' Expr
| SimpleExpr ArgumentExprs `=' Expr
| PostfixExpr [`:' Type1]
+ | MethodClosure
PostfixExpr ::= InfixExpr [id]
InfixExpr ::= PrefixExpr
| InfixExpr id PrefixExpr
@@ -89,8 +90,9 @@ grammar.
| SimpleExpr TypeArgs
| SimpleExpr ArgumentExprs
| XmlExpr
- ArgumentExprs ::= `(' [Exprs] ')'
+ ArgumentExprs ::= `(' [Exprs] ')'
| BlockExpr
+ MethodClosure ::= `.' Id {`.' Id | TypeArgs | ArgumentExprs}
BlockExpr ::= `{' CaseClause {CaseClause} `}'
| `{' Block `}'
Block ::= {BlockStat `;'} [ResultExpr]
@@ -132,7 +134,9 @@ grammar.
VarTypeParam ::= [`+' | `-'] TypeParam
TypeParam ::= id [>: Type] [<: Type | <% Type]
ParamClause ::= `(' [Param {`,' Param}] `)'
- Param ::= [def] id `:' Type [`*']
+ ClassParamClause::= `(' [ClassParam {`,' ClassParam}] `)'
+ Param ::= id `:' [`=>' Type [`*']
+ ClassParam ::= [{Modifier} `val'] Param
Bindings ::= id [`:' Type1]
| `(' Binding {`,' Binding `)'
Binding ::= id [`:' Type]