[BACK]Return to yylex_polymake.h CVS log [TXT][DIR] Up to [local] / OpenXM / src / kan96xx / Kan

Annotation of OpenXM/src/kan96xx/Kan/yylex_polymake.h, Revision 1.3

1.3     ! takayama    1: /* $OpenXM: OpenXM/src/kan96xx/Kan/yylex_polymake.h,v 1.2 2003/11/20 00:06:50 takayama Exp $ */
1.1       takayama    2: struct pmObject {
                      3:   int tag;
                      4:   void *body;
                      5: };
                      6: typedef struct pmObject *pmObjectp ;
                      7: #define YYSTYPE pmObjectp
                      8: #define PM_unknown -2
                      9: #define PM_noToken -1
                     10:
                     11: #define PMobject_str 1
                     12: #define PMobject_list 2
1.3     ! takayama   13: #define PMobject_tree 3
1.1       takayama   14:
                     15: struct pmList {
                     16:   pmObjectp left;
                     17:   struct pmList *right;
                     18: };
                     19:
1.3     ! takayama   20: struct pmTree {
        !            21:   char *nodeName;
        !            22:   pmObjectp attrList;
        !            23:   pmObjectp childs;
        !            24: };
        !            25:
1.1       takayama   26: pmObjectp pmNewStrObject(char *s);
                     27: pmObjectp pmNewListObject(pmObjectp a);
                     28: pmObjectp pmCons(pmObjectp a,struct pmList *b);
1.3     ! takayama   29: int pmListLength(struct pmList *list);
        !            30: pmObjectp pmNewTreeObject(char *s);
        !            31: pmObjectp pmNewTreeObjecto(pmObjectp s);
        !            32: pmObjectp pmAddAttr(pmObjectp c,pmObjectp a);
        !            33: pmObjectp pmAddChild(pmObjectp c,pmObjectp a);
1.1       takayama   34: void pmPrintObject(FILE *fp,pmObjectp a);

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>