bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: master: tests: style: use %empty


From: Akim Demaille
Subject: FYI: master: tests: style: use %empty
Date: Wed, 15 Aug 2018 19:39:13 +0200

Installed in master.

commit e26adec81d1dc03cb3a858dacee56e4ace80d211
Author: Akim Demaille <address@hidden>
Date:   Wed Aug 15 19:00:13 2018 +0200

    tests: style: use %empty
    
    * tests/conflicts.at: here.

diff --git a/tests/conflicts.at b/tests/conflicts.at
index bd2d4643..bf053b86 100644
--- a/tests/conflicts.at
+++ b/tests/conflicts.at
@@ -501,7 +501,7 @@ consistent-error-on-a-a:
   | 'a' shift
   ;
 
-default-reduction: /*empty*/ ;
+default-reduction: %empty ;
 shift: 'b' ;
 
 // Provide another context in which all rules are useful so that this
@@ -601,7 +601,8 @@ error-reduce:
   { USE ($][1); }
 ;
 
-consistent-reduction: /*empty*/ {
+consistent-reduction: %empty
+{
   assert (yychar == YYEMPTY);
   yylval = 0;
   yychar = 'b';
@@ -609,7 +610,7 @@ consistent-reduction: /*empty*/ {
 
 consistent-error:
   'a' { USE ($][1); }
-| /*empty*/ %prec 'a'
+| %empty %prec 'a'
 ;
 
 // Provide another context in which all rules are useful so that this
@@ -1561,11 +1562,11 @@ start:
   | empty_c2 'c'
   | empty_c3 'c'
   ;
-empty_a: %prec 'a' ;
-empty_b: %prec 'b' ;
-empty_c1: %prec 'c' ;
-empty_c2: %prec 'c' ;
-empty_c3: %prec 'd' ;
+empty_a:  %empty %prec 'a' ;
+empty_b:  %empty %prec 'b' ;
+empty_c1: %empty %prec 'c' ;
+empty_c2: %empty %prec 'c' ;
+empty_c3: %empty %prec 'd' ;
 ]])
 AT_BISON_CHECK([[--report=all -o input.c input.y]], 0, [], [ignore])
 AT_CHECK([[cat input.output | sed -n '/^State 0$/,/^State 1$/p']], 0,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]