View Issue Details

IDProjectCategoryView StatusLast Update
00007351003.1(2013)/Issue7+TC1Shell and Utilitiespublic2019-06-10 08:55
Reportersalikhmetov Assigned To 
PrioritynormalSeverityCommentTypeEnhancement Request
Status ClosedResolutionAccepted 
NameAnton Salikhmetov
OrganizationEuroMake Initiative
User Reference
SectionXCU 2.10.2
Page Number2351
Line Number74863-74866
Interp Status---
Final Accepted Text
Summary0000735: 5 shift/reduce conflicts in Shell Grammar Rules
DescriptionWhen processed by yacc(1), Shell Grammar Rules result in 5 shift/reduce conflicts. These conflicts are all caused by unnecessary linebreak non-terminals in case_item_ns rule after compound_list non-terminals. The linebreak non-terminal are indeed unnecessary because compound_list rule

compound_list : term
                 | newline_list term
                 | term separator
                 | newline_list term separator
                 ;

where

separator : separator_op linebreak
                 | newline_list
                 ;

itself embeds linebreak definition

linebreak : newline_list
                 | /* empty */
                 ;

Without the trailing linebreak non-terminals following compound_list, yacc(1) produces no shift/reduce conflicts.
Desired ActionOn page 2351, lines 74863-74866, change

case_item_ns : pattern ')' linebreak
                 | pattern ')' compound_list linebreak
                 | '(' pattern ')' linebreak
                 | '(' pattern ')' compound_list linebreak
                 ;

to

case_item_ns : pattern ')' linebreak
                 | pattern ')' compound_list
                 | '(' pattern ')' linebreak
                 | '(' pattern ')' compound_list
                 ;
Tagstc2-2008

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2013-08-15 14:02 salikhmetov New Issue
2013-08-15 14:02 salikhmetov Name => Anton Salikhmetov
2013-08-15 14:02 salikhmetov Organization => EuroMake Initiative
2013-08-15 14:02 salikhmetov Section => XCU 2.10.2
2013-08-15 14:02 salikhmetov Page Number => 2351
2013-08-15 14:02 salikhmetov Line Number => 74863-74866
2013-08-22 15:46 Don Cragun Interp Status => ---
2013-08-22 15:46 Don Cragun Status New => Resolved
2013-08-22 15:46 Don Cragun Resolution Open => Accepted
2013-08-22 15:47 Don Cragun Tag Attached: tc2-2008
2019-06-10 08:55 agadmin Status Resolved => Closed