/usr/share/doc/peg/examples/dcv.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 18 19 20 | #include <stdio.h>
#include <stdlib.h>
int stack[1024];
int stackp= -1;
int var= 0;
int vars[26];
int push(int n) { return stack[++stackp]= n; }
int pop(void) { return stack[stackp--]; }
int top(void) { return stack[stackp]; }
#include "dcv.peg.c"
int main()
{
while (yyparse());
return 0;
}
|