]> git.draconx.ca Git - gob-dx.git/blob - src/treefuncs.def
Release 1.0.2
[gob-dx.git] / src / treefuncs.def
1 HEADER
2 /* for ccode type */
3 enum {
4         A_CCODE,
5         AT_CCODE,
6         C_CCODE,
7         H_CCODE,
8         HT_CCODE,
9         PH_CCODE
10 };
11
12 /* check type */
13 enum {
14         NULL_CHECK,
15         TYPE_CHECK,
16         LT_CHECK,
17         GT_CHECK,
18         LE_CHECK,
19         GE_CHECK,
20         EQ_CHECK,
21         NE_CHECK
22 };
23
24 /* scope type */
25 enum {
26         NO_SCOPE,
27         PUBLIC_SCOPE,
28         PRIVATE_SCOPE,
29         PROTECTED_SCOPE,
30         CLASS_SCOPE
31 };
32
33 /* method type */
34 enum {
35         REGULAR_METHOD,
36         INIT_METHOD,
37         CLASS_INIT_METHOD,
38         VIRTUAL_METHOD,
39         SIGNAL_LAST_METHOD,
40         SIGNAL_FIRST_METHOD,
41         OVERRIDE_METHOD
42 };
43 ENDHEADER
44
45 CLASS Class
46   STRING        otype   # this object class type
47   STRING        ptype   # parent class type
48   STRING        chunk_size # if the object should be allocated with mem_chunks
49   NODELIST      nodes
50 ENDCLASS
51
52 CLASS Type
53   STRING        name    # the specifier part
54   STRING        pointer # the pointer part
55   STRING        postfix
56 ENDCLASS
57
58 CLASS CCode
59   INT           cctype
60   STRING        cbuf
61   INT           line_no
62 ENDCLASS
63
64 CLASS Check
65   INT           chtype
66   STRING        number
67 ENDCLASS
68
69 CLASS FuncArg
70   TYPE          atype
71   STRING        name
72   NODELIST      checks
73 ENDCLASS
74
75 CLASS Argument
76   STRING        gtktype
77   TYPE          atype
78   STRINGLIST    flags
79   STRING        name
80   STRING        get
81   INT           get_line
82   STRING        set
83   INT           set_line
84   INT           line_no
85 ENDCLASS
86
87 CLASS Method
88   INT           scope           # scope type
89   INT           method          # method type
90   TYPE          mtype
91   STRING        otype           # for override methods
92   STRINGLIST    gtktypes        # GTK types for a signal
93   STRINGLIST    flags           # GTK_RUN_* flags for a signal
94   STRING        id
95   NODELIST      args
96   STRING        onerror
97   STRING        defreturn
98   STRING        cbuf
99   INT           line_no
100   INT           ccode_line
101   BOOL          vararg
102   INT           unique_id       # A unique id for new methods
103 ENDCLASS
104
105 CLASS Variable
106   INT           scope
107   TYPE          vtype
108   STRING        id
109   INT           line_no
110   STRING        destructor
111   INT           destructor_line
112   BOOL          destructor_simple
113   STRING        initializer
114   INT           initializer_line
115 ENDCLASS