mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
18 lines
285 B
C
18 lines
285 B
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;
|
||
|
}
|