Aladdin - Scala Bugtracking
[#1216] project: documentation priority: low category: bug
submitter assigned to status date submitted
Nikolay Martin fixed 2007-07-17 10:21:24.0
subject [contrib #690] Expr1 grammar omission
code
From page 143 of ScalaReference.pdf

Expr1 ::= if ‘(’ Expr ‘)’ {nl} Expr [[semi] else Expr] 
| while ‘(’ Expr ‘)’ {nl} Expr 
| try ‘{’ Block ‘}’ [catch ‘{’ CaseClauses ‘}’] [finally Expr] 
| do Expr [semi] while ‘(’ Expr ’)’ 
| for (‘(’ Enumerators ‘)’ | ‘{’ Enumerators ‘}’) {nl} [yield] Expr 
| throw Expr 
| return [Expr] 
| [SimpleExpr ‘.’] id ‘=’ Expr 
| SimpleExpr1 ArgumentExprs ‘=’ Expr 
| PostfixExpr Ascription 
| PostfixExpr match ‘{’ CaseClauses ‘}’ 
what happened
Missing the option to have just a PostfixExpr
what expected Expr1 ::= if ‘(’ Expr ‘)’ {nl} Expr [[semi] else Expr] | while ‘(’ Expr ‘)’ {nl} Expr | try ‘{’ Block ‘}’ [catch ‘{’ CaseClauses ‘}’] [finally Expr] | do Expr [semi] while ‘(’ Expr ’)’ | for (‘(’ Enumerators ‘)’ | ‘{’ Enumerators ‘}’) {nl} [yield] Expr | throw Expr | return [Expr] | [SimpleExpr ‘.’] id ‘=’ Expr | SimpleExpr1 ArgumentExprs ‘=’ Expr | PostfixExpr Ascription | PostfixExpr match ‘{’ CaseClauses ‘}’ | PostfixExpr
[back to overview]
Changes of this bug report
Nikolay  edited on  2007-07-17 10:26:40.0
Martin  edited on  2007-07-26 11:02:27.0