ref: 63f3a973ef06a5ce4f7a93cc6c99bb6eaab08e11
dir: /examples/left.c/
#include <stdio.h> #define YY_INPUT(buf, result, max) \ { \ int c= getchar(); \ result= (EOF == c) ? 0 : (*(buf)= c, 1); \ if (EOF != c) printf("<%c>\n", c); \ } #include "left.peg.c" int main() { printf(yyparse() ? "success\n" : "failure\n"); return 0; }