1 #include <stdio.h>
2 
3 #define YY_INPUT(buf, result, max)			\
4 {							\
5   int c= getchar();					\
6   result= (EOF == c) ? 0 : (*(buf)= c, 1);		\
7   if (EOF != c) printf("<%c>\n", c);			\
8 }
9 
10 #include "left.peg.c"
11 
main()12 int main()
13 {
14   printf(yyparse() ? "success\n" : "failure\n");
15 
16   return 0;
17 }
18