Annotation of OpenXM/src/kan96xx/Kan/yymain_polymake.c, Revision 1.1
1.1 ! takayama 1: #include <stdio.h>
! 2: #include "yylex_polymake.h"
! 3: #include "yy_polymake.tab.h"
! 4:
! 5: char *SS=NULL;
! 6: main_t() {
! 7: int c,type;
! 8: pmPutstr(-1);
! 9: while ((c=getchar()) != EOF) {
! 10: pmPutstr(c);
! 11: }
! 12: SS = pmPutstr(0);
! 13: printf("%s\n",SS);
! 14: pmSetS(SS);
! 15: pmPreprocess();
! 16: printf("--------------------------\n");
! 17: printf("%s\n",SS);
! 18: printf("--------------------------\n");
! 19: while ((type=PMlex()) != PM_noToken) {
! 20: printf("type=%d ",type);
! 21: if ((type == PM_number) || (type == PM_keyword)) {
! 22: printf("value="); pmPrintObject(stdout,PMlval);
! 23: }
! 24: printf("\n");
! 25: }
! 26: }
! 27:
! 28: main() {
! 29: int c,type;
! 30:
! 31: pmPutstr(-1);
! 32: while ((c=getchar()) != EOF) {
! 33: pmPutstr(c);
! 34: }
! 35: SS = pmPutstr(0);
! 36: printf("%s\n",SS);
! 37: pmSetS(SS);
! 38: pmPreprocess();
! 39: printf("--------------------------\n");
! 40: printf("%s\n",SS);
! 41: printf("--------------------------\n");
! 42: PMparse();
! 43: }
! 44:
! 45: sGC_malloc(int n) {
! 46: return GC_malloc(n);
! 47: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>