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