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