/usr/share/doc/peg/examples/left.c is in peg 0.1.15-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #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;
}
|