diff options
author | Martin Odersky <odersky@gmail.com> | 2004-09-02 16:19:06 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2004-09-02 16:19:06 +0000 |
commit | 7320ca34aad20a1c47715d265a85da7274b0eaf4 (patch) | |
tree | d463653247060d0d7d5b2139cbdada138215e554 /doc/reference/ReferencePartAppendix.tex | |
parent | 5c259cbc76648b0e36e27b47e07a6066704c3f52 (diff) | |
download | scala-7320ca34aad20a1c47715d265a85da7274b0eaf4.tar.gz scala-7320ca34aad20a1c47715d265a85da7274b0eaf4.tar.bz2 scala-7320ca34aad20a1c47715d265a85da7274b0eaf4.zip |
*** empty log message ***
Diffstat (limited to 'doc/reference/ReferencePartAppendix.tex')
-rw-r--r-- | doc/reference/ReferencePartAppendix.tex | 8 |
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] |