-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlexer.h
52 lines (44 loc) · 805 Bytes
/
lexer.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
#ifndef LEXER_H
#define LEXER_H
#define TEOF 0
#define TNL 1
#define TSEMI 2
#define TPIPE 3
#define TAND 4
#define TOR 5
#define TBGND 6
#define TLPAR 7
#define TRPAR 8
#define TLESS 9
#define TGRTR 10
#define TDLSS 11
#define TDGRT 12
#define TWORD 13
#define TNOT 14
#define TWHLE 15
#define TUNTL 16
#define TDO 17
#define TDONE 18
#define TIF 19
#define TTHEN 20
#define TELSE 21
#define TELIF 22
#define TFI 23
#define TFOR 24
#define TIN 25
#define TLBRC 26
#define TRBRC 27
#define TMAX 28
#define KWDOFFSET 14
#include "cmd.h"
extern int yytoken;
extern char *yytext;
extern struct cbinary *subst;
extern const char *tokname[];
extern const char *toktxt[];
int nexttoken(void);
int skipspaces(void);
int checkwd(void);
void setprompt(int);
#define CTLSUBST (-125)
#endif