Thread overview
[Issue 3612] New: ExpressionList is undefined
Dec 12, 2009
Jerry Quinn
Dec 14, 2009
Leandro Lucarella
Dec 31, 2009
Walter Bright
December 12, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3612

           Summary: ExpressionList is undefined
           Product: D
           Version: 2.036
          Platform: Other
               URL: http://digitalmars.com/d/2.0/statement.html#CaseRangeS
                    tatement
        OS/Version: All
            Status: NEW
          Keywords: spec
          Severity: normal
          Priority: P2
         Component: www.digitalmars.com
        AssignedTo: nobody@puremagic.com
        ReportedBy: jlquinn@optonline.net


--- Comment #0 from Jerry Quinn <jlquinn@optonline.net> 2009-12-12 10:54:42 PST ---
CaseStatement is currently written as

CaseStatement:
    case ExpressionList : Statement

Here the grammar refers to ExpressionList, described as a ',' separated list of Expression.  However, Expression is a ',' separated list of AssignExpression. So this is highly ambiguous.  There's no way from the description to distinguish between AssignExpressions that should be evaluated and ignored, and cases to be handled.

If we define:

ExpressionList:
        AssignExpression
        AssignExpression , ExpressionList

then the problem goes away.  The text should be adjusted to match.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 14, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3612


Leandro Lucarella <llucax@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |llucax@gmail.com


--- Comment #1 from Leandro Lucarella <llucax@gmail.com> 2009-12-14 06:30:25 PST ---
http://www.dsource.org/projects/phobos/changeset/1375

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 31, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3612


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2009-12-31 11:17:07 PST ---
Fixed dmd 1.054 and 2.038

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------