/[bison]/bison/tests/actions.at
ViewVC logotype

Diff of /bison/tests/actions.at

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by akim, Sat Dec 29 14:24:51 2001 UTC revision 1.2 by akim, Sat Dec 29 14:25:58 2001 UTC
# Line 37  static void yyerror (const char *msg); Line 37  static void yyerror (const char *msg);
37  static int yylex (void);  static int yylex (void);
38  %}  %}
39  %%  %%
40  exp:     { printf ("0\n"); }  exp:     { putchar ('0'); }
41       '1' { printf ("1\n"); }       '1' { putchar ('1'); }
42       '2' { printf ("2\n"); }       '2' { putchar ('2'); }
43       '3' { printf ("3\n"); }       '3' { putchar ('3'); }
44       '4' { printf ("4\n"); }       '4' { putchar ('4'); }
45       '5' { printf ("5\n"); }       '5' { putchar ('5'); }
46       '6' { printf ("6\n"); }       '6' { putchar ('6'); }
47       '7' { printf ("7\n"); }       '7' { putchar ('7'); }
48       '8' { printf ("8\n"); }       '8' { putchar ('8'); }
49       '9' { printf ("9\n"); }       '9' { putchar ('9'); }
50             { putchar ('\n'); }
51     ;     ;
52  %%  %%
53  static int  static int
# Line 72  main (void) Line 73  main (void)
73  AT_CHECK([bison input.y -d -v -o input.c])  AT_CHECK([bison input.y -d -v -o input.c])
74  AT_CHECK([$CC $CFLAGS $CPPFLAGS input.c -o input], 0, [], [ignore])  AT_CHECK([$CC $CFLAGS $CPPFLAGS input.c -o input], 0, [], [ignore])
75  AT_CHECK([input], 0,  AT_CHECK([input], 0,
76  [[0  [[0123456789
 1  
 2  
 3  
 4  
 5  
 6  
 7  
 8  
 9  
77  ]])  ]])
78    
79  AT_CLEANUP  AT_CLEANUP

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26