dc.c 234 B

123456789101112131415161718
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int stack[1024];
  4. int stackp= -1;
  5. int push(int n) { return stack[++stackp]= n; }
  6. int pop(void) { return stack[stackp--]; }
  7. #include "dc.peg.c"
  8. int main()
  9. {
  10. while (yyparse());
  11. return 0;
  12. }