ref: bc90c2ec4f3d8b0480c4cdb38e11dca49812fe1d dir: /examples/localpeg.c/
#include <stdio.h> #define YY_CTX_LOCAL #include "test.peg.c" int main() { yycontext ctx; memset(&ctx, 0, sizeof(yycontext)); while (yyparse(&ctx)); return 0; }