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