forked from sarnold/cyclo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tokens.h
52 lines (45 loc) · 984 Bytes
/
tokens.h
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
(c) 1993 Roger Binns
These tools were produced by Roger Binns for a fourth year project as part of
a computer science degree, for the Computer Science department, Brunel
University, Uxbridge, Middlesex UB8 3PH, United Kingdom.
This software is provided in good faith, having been developed by Brunel
University students as part of their normal course work. It should not be
assumed that Brunel has any rights of ownership, and the University cannot
accept any liability for its subsequent use. It is a condition of any such
use that the user idemnifies the University against any claim (including
third party claims) arising therefrom.
*/
enum TOKENS
{
NEWLINE = 256,
ENDOFSTATEMENT,
IF,
WHILE,
BEGINSCOPE,
ENDSCOPE,
DO,
SWITCH,
CASE,
DEFAULT,
GOTO,
FUNCTION,
LABEL,
STRUCT,
UNION,
CLASS,
FOR,
BREAK,
AND,
OR,
CONTINUE,
RETURN,
IGNORE,
ELSE,
ELSEIF
};
extern union YY_LVAL
{
char *yy_str;
} yylval;
extern int atelparen;