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