]> git.draconx.ca Git - gob-dx.git/blob - src/treefuncs.def
Release 2.0.18
[gob-dx.git] / src / treefuncs.def
1 # Run ./generate_treefuncs.pl after modifying this to regenerate
2 # treefuncs.[ch]
3
4 # These are the parse tree definitions, eliminates typos
5
6 HEADER
7 /* for ccode type */
8 enum {
9         A_CCODE,
10         AT_CCODE,
11         C_CCODE,
12         AD_CCODE,
13         H_CCODE,
14         HT_CCODE,
15         PH_CCODE,
16         CT_CCODE
17 };
18
19 /* check type */
20 enum {
21         NULL_CHECK,
22         TYPE_CHECK,
23         LT_CHECK,
24         GT_CHECK,
25         LE_CHECK,
26         GE_CHECK,
27         EQ_CHECK,
28         NE_CHECK
29 };
30
31 /* scope type */
32 enum {
33         NO_SCOPE,
34         PUBLIC_SCOPE,
35         PRIVATE_SCOPE,
36         PROTECTED_SCOPE,
37         CLASS_SCOPE
38 };
39
40 /* method type */
41 enum {
42         REGULAR_METHOD,
43         INIT_METHOD,
44         CLASS_INIT_METHOD,
45         CONSTRUCTOR_METHOD,
46         DISPOSE_METHOD,
47         FINALIZE_METHOD,
48         VIRTUAL_METHOD,
49         SIGNAL_LAST_METHOD,
50         SIGNAL_FIRST_METHOD,
51         OVERRIDE_METHOD
52 };
53
54 ENDHEADER
55
56 CLASS Class
57   STRING        otype   # this object class type
58   STRING        ptype   # parent class type
59   STRING        bonobo_object_class # Class for BonoboObject
60   BOOL          glade_xml # Glade XML Class
61   STRING        chunk_size # if the object should be allocated with mem_chunks
62   STRINGLIST    interfaces # GObject interfaces this class exports
63   NODELIST      nodes
64   BOOL          abstract # if G_TYPE_FLAG_ABSTRACT should be used
65 ENDCLASS
66
67 CLASS Type
68   STRING        name    # the specifier part
69   STRING        pointer # the pointer part
70   STRING        postfix
71 ENDCLASS
72
73 CLASS CCode
74   INT           cctype
75   STRING        cbuf
76   INT           line_no
77 ENDCLASS
78
79 CLASS Check
80   INT           chtype
81   STRING        number
82 ENDCLASS
83
84 CLASS FuncArg
85   TYPE          atype
86   STRING        name
87   NODELIST      checks
88 ENDCLASS
89
90 CLASS Argument
91   STRING        gtktype
92   TYPE          atype
93   STRINGLIST    flags
94   STRING        name
95   STRING        get
96   INT           get_line
97   STRING        set
98   INT           set_line
99   INT           line_no
100 ENDCLASS
101
102 CLASS Property
103   STRING        gtktype
104   TYPE          ptype
105   STRINGLIST    flags
106   STRING        name
107   STRING        nick
108   STRING        blurb
109   STRING        minimum
110   STRING        maximum
111   STRING        default_value
112   STRING        extra_gtktype
113   BOOL          override
114   BOOL          link
115   BOOL          export
116   STRING        get
117   INT           get_line
118   STRING        set
119   INT           set_line
120   INT           line_no
121 ENDCLASS
122
123 CLASS Method
124   INT           scope           # scope type
125   INT           method          # method type
126   TYPE          mtype
127   STRING        otype           # for override methods
128   STRINGLIST    gtktypes        # GObject types for a signal
129   STRINGLIST    flags           # G_SIGNAL_* flags for a signal
130   STRING        id
131   NODELIST      args
132   STRING        funcattrs       # GLib function attribute macros
133   STRING        onerror
134   STRING        defreturn
135   STRING        cbuf
136   INT           line_no
137   INT           ccode_line
138   BOOL          vararg
139   INT           unique_id       # A unique id for new methods
140   BOOL          bonobo_object_func      # Function for BonoboObject
141   STRING        interface       # interface this belongs to
142 ENDCLASS
143
144 CLASS Variable
145   INT           scope
146   TYPE          vtype
147   BOOL          glade_widget
148   STRING        id
149   INT           line_no
150   BOOL          destructor_unref
151   STRING        destructor
152   INT           destructor_line
153   BOOL          destructor_simple
154   STRING        initializer
155   INT           initializer_line
156   BOOL          initializer_simple
157 ENDCLASS
158
159 CLASS EnumDef
160   STRING        etype
161   STRING        prefix
162   NODELIST      values
163 ENDCLASS
164
165 CLASS EnumValue
166   STRING        name
167   STRING        value
168 ENDCLASS
169
170 CLASS Flags
171   STRING        ftype
172   STRING        prefix
173   STRINGLIST    values
174 ENDCLASS
175
176 CLASS Error
177   STRING        etype
178   STRING        prefix
179   STRINGLIST    values
180 ENDCLASS