BRL-CAD
obj_token_type.h
Go to the documentation of this file.
1 /* O B J _ T O K E N _ T Y P E . H
2  * BRL-CAD
3  *
4  * Copyright (c) 2011-2014 United States Government as represented by
5  * the U.S. Army Research Laboratory.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public License
9  * version 2.1 as published by the Free Software Foundation.
10  *
11  * This library is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this file; see the file named COPYING for more
18  * information.
19  */
20 /** @file obj_token_type.h
21  *
22  * Token object used by scanner and parser.
23  *
24  */
25 
26 #ifndef LIBGCV_WFOBJ_OBJ_TOKEN_TYPE_H
27 #define LIBGCV_WFOBJ_OBJ_TOKEN_TYPE_H
28 const int TOKEN_STRING_LEN = 80;
29 
30 typedef union YYSTYPE
31 {
32  float real;
33  int integer;
34  int reference[3];
35  unsigned char toggle;
36  size_t index;
37  char string[TOKEN_STRING_LEN];
38 } YYSTYPE;
39 #endif
40 
41 /*
42  * Local Variables:
43  * tab-width: 8
44  * mode: C
45  * indent-tabs-mode: t
46  * c-file-style: "stroustrup"
47  * End:
48  * ex: shiftwidth=4 tabstop=8
49  */
unsigned char toggle
int reference[3]
size_t index
float real
const int TOKEN_STRING_LEN
union YYSTYPE YYSTYPE