]> git.draconx.ca Git - gob-dx.git/blob - src/treefuncs.def
Release 2.0.20
[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        canonical_name
108   STRING        nick
109   STRING        blurb
110   STRING        minimum
111   STRING        maximum
112   STRING        default_value
113   STRING        extra_gtktype
114   BOOL          override
115   BOOL          link
116   BOOL          export
117   STRING        get
118   INT           get_line
119   STRING        set
120   INT           set_line
121   INT           line_no
122 ENDCLASS
123
124 CLASS Method
125   INT           scope           # scope type
126   INT           method          # method type
127   TYPE          mtype
128   STRING        otype           # for override methods
129   STRINGLIST    gtktypes        # GObject types for a signal
130   STRINGLIST    flags           # G_SIGNAL_* flags for a signal
131   STRING        signal_name     # Name of signal
132   STRING        id
133   NODELIST      args
134   STRING        funcattrs       # GLib function attribute macros
135   STRING        onerror
136   STRING        defreturn
137   STRING        cbuf
138   INT           line_no
139   INT           ccode_line
140   BOOL          vararg
141   INT           unique_id       # A unique id for new methods
142   BOOL          bonobo_object_func      # Function for BonoboObject
143   STRING        interface       # interface this belongs to
144 ENDCLASS
145
146 CLASS Variable
147   INT           scope
148   TYPE          vtype
149   BOOL          glade_widget
150   STRING        id
151   INT           line_no
152   BOOL          destructor_unref
153   STRING        destructor
154   INT           destructor_line
155   BOOL          destructor_simple
156   STRING        initializer
157   INT           initializer_line
158   BOOL          initializer_simple
159 ENDCLASS
160
161 CLASS EnumDef
162   STRING        etype
163   STRING        prefix
164   NODELIST      values
165 ENDCLASS
166
167 CLASS EnumValue
168   STRING        name
169   STRING        value
170 ENDCLASS
171
172 CLASS Flags
173   STRING        ftype
174   STRING        prefix
175   STRINGLIST    values
176 ENDCLASS
177
178 CLASS Error
179   STRING        etype
180   STRING        prefix
181   STRINGLIST    values
182 ENDCLASS