View Issue Details

IDProjectCategoryView StatusLast Update
00010961003.1(2016/18)/Issue7+TC2Shell and Utilitiespublic2016-10-27 18:06
ReporterMark_Galeck Assigned To 
PrioritynormalSeverityEditorialTypeClarification Requested
Status ClosedResolutionWithdrawn 
NameMark Galeck
Organization
User Reference
Section2.10.2 Shell Grammar Rules
Page Number2376
Line Number75929-75930
Interp Status---
Final Accepted Text
Summary0001096: Why bother differentiating between several failure outcomes when it does not matter which one it is?
DescriptionThis problem happens in several places. But because I am not sure if my Desired Action will be accepted, I will just report one for now and see if you agree.

This example has to do with production

in: In /* Apply rule 6 */

as attempted for the third word of the "for" case.

In that case, rule 6b says to differentiate between "In", "Do" or WORD. We could just replace that with "In" or WORD. Once we see the token is not "in", we just return WORD. What is the point of trying to see if it is "Do". It will fail anyway, just like WORD, which is a "generic" failure token.

Not for any error recovery - if we did see "do" here, all we can say is: 'do' unexpected. We don't need to check for "do" to do this, we can just check for "in" and if the token text does not match that, we say: <text> unexpected
Desired ActionRemove label [case only] from rule 6a, and say

in: In /* Apply rule 6a */
TagsNo tags attached.

Activities

Mark_Galeck

2016-10-27 12:42

reporter   bugnote:0003459

This report is included in the summary report 1100 and can be cancelled.

Don Cragun

2016-10-27 18:06

manager   bugnote:0003472

Withdrawn by submitter in 0001096:0003459

Issue History

Date Modified Username Field Change
2016-10-20 12:31 Mark_Galeck New Issue
2016-10-20 12:31 Mark_Galeck Name => Mark Galeck
2016-10-20 12:31 Mark_Galeck Section => 2.10.2 Shell Grammar Rules
2016-10-20 12:31 Mark_Galeck Page Number => 2376
2016-10-20 12:31 Mark_Galeck Line Number => 75929-75930
2016-10-27 12:42 Mark_Galeck Note Added: 0003459
2016-10-27 18:06 Don Cragun Interp Status => ---
2016-10-27 18:06 Don Cragun Note Added: 0003472
2016-10-27 18:06 Don Cragun Status New => Closed
2016-10-27 18:06 Don Cragun Resolution Open => Withdrawn