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