ViSP  2.8.0
vpToken.h
1 /****************************************************************************
2  *
3  * $Id: vpToken.h 4056 2013-01-05 13:04:42Z fspindle $
4  *
5  * This file is part of the ViSP software.
6  * Copyright (C) 2005 - 2013 by INRIA. All rights reserved.
7  *
8  * This software is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * ("GPL") version 2 as published by the Free Software Foundation.
11  * See the file LICENSE.txt at the root directory of this source
12  * distribution for additional information about the GNU GPL.
13  *
14  * For using ViSP with software that can not be combined with the GNU
15  * GPL, please contact INRIA about acquiring a ViSP Professional
16  * Edition License.
17  *
18  * See http://www.irisa.fr/lagadic/visp/visp.html for more information.
19  *
20  * This software was developed at:
21  * INRIA Rennes - Bretagne Atlantique
22  * Campus Universitaire de Beaulieu
23  * 35042 Rennes Cedex
24  * France
25  * http://www.irisa.fr/lagadic
26  *
27  * If you have questions regarding the use of this file, please contact
28  * INRIA at visp@inria.fr
29  *
30  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
31  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
32  *
33  *
34  * Description:
35  * Le module "token.h" contient les Macros et les Types
36  * des jetons de l'analyseur lexicale .
37  *
38  * Authors:
39  * Jean-Luc CORRE
40  *
41  *****************************************************************************/
42 #ifndef vpToken_H
43 #define vpToken_H
44 
45 #include <visp/vpConfig.h>
46 
47 #ifndef DOXYGEN_SHOULD_SKIP_THIS
48 
49 
50 typedef struct {
51  char *ident; /* identifateur */
52  Index token; /* code du jeton */
53 } Keyword;
54 
55 #define T_EOF 256
56 #define T_FLOAT 257
57 #define T_IDENT 258
58 #define T_INT 259
59 #define T_STRING 260
60 
61 extern float myfloat;
62 extern int myint;
63 extern int mylength;
64 extern int mylineno;
65 extern char *mytext;
66 extern Keyword keyword_tbl[];
67 
68 
69 /*
70  * Jetons superieurs a 270 (voir "../mylex/token.h").
71  */
72 #define T_ABOVE 270
73 #define T_BACK 271
74 #define T_BELOW 272
75 #define T_BOUND 273
76 #define T_COP 274
77 #define T_DEPTH 275
78 #define T_EXIT 276
79 #define T_FACE_LIST 277
80 #define T_FILE 278
81 #define T_FRONT 279
82 #define T_IMAGE 280
83 #define T_LEFT 281
84 #define T_NONE 282
85 #define T_ORIGIN 283
86 #define T_PARALLEL 284
87 #define T_PERSPECTIVE 285
88 #define T_POINT_LIST 286
89 #define T_REMOVE 287
90 #define T_RIGHT 288
91 #define T_SIZE 289
92 #define T_TYPE 290
93 #define T_VIEW 291
94 #define T_VPN 292
95 #define T_VRP 293
96 #define T_VUP 294
97 #define T_WINDOW 295
98 
99 #endif
100 #endif