1struct bs_xml_atom { char *name; int val; }
2%%
3constant, 1
4enum, 2 
5struct, 3 
6informal_protocol, 4
7arg, 5 
8retval, 6
9function, 7
10class, 8
11method, 9 
12cftype, 10
13opaque, 11
14function_alias, 12
15string_constant, 13
16%%
17#define BS_XML_CONSTANT           1
18#define BS_XML_ENUM               2
19#define BS_XML_STRUCT             3
20#define BS_XML_INFORMAL_PROTOCOL  4
21#define BS_XML_ARG                5 
22#define BS_XML_RETVAL             6
23#define BS_XML_FUNCTION           7
24#define BS_XML_CLASS              8
25#define BS_XML_METHOD             9
26#define BS_XML_CFTYPE             10
27#define BS_XML_OPAQUE             11
28#define BS_XML_FUNCTION_ALIAS     12
29#define BS_XML_STRING_CONSTANT    13
30