home: hub: minipeg

ref: 5bfa60d0623d1d621fa19e722c7b599eb124a036
dir: /examples/dc.c/

View raw version
#include <stdio.h>
#include <stdlib.h>

int stack[1024];
int stackp= -1;

int push(int n)	{ return stack[++stackp]= n; }
int pop(void)	{ return stack[stackp--]; }

#include "dc.peg.c"

int main()
{
  while (yyparse());

  return 0;
}