summaryrefslogtreecommitdiff
path: root/2003/i/buzz/src/config/config_lex.h
blob: 784a7e1596bcf0a58e2d5027a35de10b4290837b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef config_lex_h
#define config_lex_h
// config_lex.h
// buzz - Programme du robot Efrei Robotique I1-I2 2003
// Copyright (C) 2003 Nicolas Schodet

#define NUM 0x100
#define FLOAT 0x101
#define ID 0x102
#define BOOL 0x103
#define ERR 0x104

union config_yytype
{
    double fl;
    int num;
    const char *id;
    bool boolean;
};

extern config_yytype config_yylval;

int
config_yylex (void);
int
config_yyopen (const char *filename);
void
config_yyclose (void);

#endif // config_lex_h