bison-patches
[Top][All Lists]
Advanced

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

27-fyi-change-mid-rule-action-test.patch


From: Akim Demaille
Subject: 27-fyi-change-mid-rule-action-test.patch
Date: Sat, 29 Dec 2001 15:15:28 +0100

Index: ChangeLog
from  Akim Demaille  <address@hidden>
        * tests/actions.at (Mid-rule actions): Output on a single line
        instead of several.
        
        
Index: tests/actions.at
--- tests/actions.at Fri, 28 Dec 2001 17:49:11 +0100 akim
+++ tests/actions.at Sat, 29 Dec 2001 09:11:50 +0100 akim
@@ -37,16 +37,17 @@
 static int yylex (void);
 %}
 %%
-exp:     { printf ("0\n"); }
-     '1' { printf ("1\n"); }
-     '2' { printf ("2\n"); }
-     '3' { printf ("3\n"); }
-     '4' { printf ("4\n"); }
-     '5' { printf ("5\n"); }
-     '6' { printf ("6\n"); }
-     '7' { printf ("7\n"); }
-     '8' { printf ("8\n"); }
-     '9' { printf ("9\n"); }
+exp:     { putchar ('0'); }
+     '1' { putchar ('1'); }
+     '2' { putchar ('2'); }
+     '3' { putchar ('3'); }
+     '4' { putchar ('4'); }
+     '5' { putchar ('5'); }
+     '6' { putchar ('6'); }
+     '7' { putchar ('7'); }
+     '8' { putchar ('8'); }
+     '9' { putchar ('9'); }
+         { putchar ('\n'); }
    ;
 %%
 static int
@@ -72,16 +73,7 @@ exp:     { printf ("0\n"); }
 AT_CHECK([bison input.y -d -v -o input.c])
 AT_CHECK([$CC $CFLAGS $CPPFLAGS input.c -o input], 0, [], [ignore])
 AT_CHECK([input], 0,
-[[0
-1
-2
-3
-4
-5
-6
-7
-8
-9
+[[0123456789
 ]])
 
 AT_CLEANUP



reply via email to

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