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