]> git.draconx.ca Git - gob-dx.git/blob - src/treefuncs.def
Release 2.0.10
[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   STRING        chunk_size # if the object should be allocated with mem_chunks
56   STRINGLIST    interfaces # GObject interfaces this class exports
57   NODELIST      nodes
58 ENDCLASS
59
60 CLASS Type
61   STRING        name    # the specifier part
62   STRING        pointer # the pointer part
63   STRING        postfix
64 ENDCLASS
65
66 CLASS CCode
67   INT           cctype
68   STRING        cbuf
69   INT           line_no
70 ENDCLASS
71
72 CLASS Check
73   INT           chtype
74   STRING        number
75 ENDCLASS
76
77 CLASS FuncArg
78   TYPE          atype
79   STRING        name
80   NODELIST      checks
81 ENDCLASS
82
83 CLASS Argument
84   STRING        gtktype
85   TYPE          atype
86   STRINGLIST    flags
87   STRING        name
88   STRING        get
89   INT           get_line
90   STRING        set
91   INT           set_line
92   INT           line_no
93 ENDCLASS
94
95 CLASS Property
96   STRING        gtktype
97   TYPE          ptype
98   STRINGLIST    flags
99   STRING        name
100   STRING        nick
101   STRING        blurb
102   STRING        minimum
103   STRING        maximum
104   STRING        default_value
105   STRING        extra_gtktype
106   BOOL          override
107   BOOL          link
108   BOOL          export
109   STRING        get
110   INT           get_line
111   STRING        set
112   INT           set_line
113   INT           line_no
114 ENDCLASS
115
116 CLASS Method
117   INT           scope           # scope type
118   INT           method          # method type
119   TYPE          mtype
120   STRING        otype           # for override methods
121   STRINGLIST    gtktypes        # GObject types for a signal
122   STRINGLIST    flags           # G_SIGNAL_* flags for a signal
123   STRING        id
124   NODELIST      args
125   STRING        onerror
126   STRING        defreturn
127   STRING        cbuf
128   INT           line_no
129   INT           ccode_line
130   BOOL          vararg
131   INT           unique_id       # A unique id for new methods
132   BOOL          bonobo_object_func      # Function for BonoboObject
133   STRING        interface       # interface this belongs to
134 ENDCLASS
135
136 CLASS Variable
137   INT           scope
138   TYPE          vtype
139   STRING        id
140   INT           line_no
141   BOOL          destructor_unref
142   STRING        destructor
143   INT           destructor_line
144   BOOL          destructor_simple
145   STRING        initializer
146   INT           initializer_line
147 ENDCLASS
148
149 CLASS EnumDef
150   STRING        etype
151   STRING        prefix
152   NODELIST      values
153 ENDCLASS
154
155 CLASS EnumValue
156   STRING        name
157   STRING        value
158 ENDCLASS
159
160 CLASS Flags
161   STRING        ftype
162   STRING        prefix
163   STRINGLIST    values
164 ENDCLASS
165
166 CLASS Error
167   STRING        etype
168   STRING        prefix
169   STRINGLIST    values
170 ENDCLASS