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