Annotation of OpenXM/src/kan96xx/trans/yylex_polymake.h, Revision 1.1
1.1 ! takayama 1: /* $OpenXM$ */
! 2: struct pmObject {
! 3: int tag;
! 4: void *body;
! 5: };
! 6: typedef struct pmObject *pmObjectp ;
! 7: extern pmObjectp PMlval; /* Yacc on FreeBSD 4.8 does not generate this declaration in yy_polymake.tab.h
! 8: Yacc on Debian potato generates this declaration in yy_poymake.tab.h
! 9: No problem with makeing two extern declarations. */
! 10:
! 11: #define YYSTYPE pmObjectp
! 12: #define PM_unknown -2
! 13: #define PM_noToken -1
! 14:
! 15: #define PMobject_str 1
! 16: #define PMobject_list 2
! 17: #define PMobject_tree 3
! 18:
! 19: struct pmList {
! 20: pmObjectp left;
! 21: struct pmList *right;
! 22: };
! 23:
! 24: struct pmTree {
! 25: char *nodeName;
! 26: pmObjectp attrList;
! 27: pmObjectp childs;
! 28: };
! 29:
! 30: int pmSetS(char *s);
! 31: int pmPreprocess(void);
! 32: char *pmPutstr(int c);
! 33: pmObjectp pmNewStrObject(char *s);
! 34: pmObjectp pmNewListObject(pmObjectp a);
! 35: pmObjectp pmCons(pmObjectp a,struct pmList *b);
! 36: int pmListLength(struct pmList *list);
! 37: pmObjectp pmNewTreeObject(char *s);
! 38: pmObjectp pmNewTreeObjecto(pmObjectp s);
! 39: pmObjectp pmAddAttr(pmObjectp c,pmObjectp a);
! 40: pmObjectp pmAddChild(pmObjectp c,pmObjectp a);
! 41: void pmPrintObject(FILE *fp,pmObjectp a);
! 42: char *pmObjectToStr(pmObjectp p);
! 43: char *pmObjectToStr_aux(pmObjectp p);
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>