Visual Servoing Platform  version 3.6.1 under development (2024-11-15)
vpToken.h
1 /****************************************************************************
2  *
3  * ViSP, open source Visual Servoing Platform software.
4  * Copyright (C) 2005 - 2023 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 https://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 BEGIN_VISP_NAMESPACE
49 typedef struct
50 {
51  const 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 END_VISP_NAMESPACE
68 /*
69  * Jetons superieurs a 270 (voir "../mylex/token.h").
70  */
71 #define T_ABOVE 270
72 #define T_BACK 271
73 #define T_BELOW 272
74 #define T_BOUND 273
75 #define T_COP 274
76 #define T_DEPTH 275
77 #define T_EXIT 276
78 #define T_FACE_LIST 277
79 #define T_FILE 278
80 #define T_FRONT 279
81 #define T_IMAGE 280
82 #define T_LEFT 281
83 #define T_NONE 282
84 #define T_ORIGIN 283
85 #define T_PARALLEL 284
86 #define T_PERSPECTIVE 285
87 #define T_POINT_LIST 286
88 #define T_REMOVE 287
89 #define T_RIGHT 288
90 #define T_SIZE 289
91 #define T_TYPE 290
92 #define T_VIEW 291
93 #define T_VPN 292
94 #define T_VRP 293
95 #define T_VUP 294
96 #define T_WINDOW 295
97 #define T_NULL 296
98 
99 #endif
100 #endif