24 |
/* Token-type codes. */ |
/* Token-type codes. */ |
25 |
typedef enum token_e |
typedef enum token_e |
26 |
{ |
{ |
27 |
|
tok_undef, /* Not defined. Used to initial token_t vars. */ |
28 |
tok_eof, |
tok_eof, |
29 |
tok_identifier, |
tok_identifier, |
30 |
tok_comma, |
tok_comma, |
48 |
tok_number, |
tok_number, |
49 |
tok_expect, |
tok_expect, |
50 |
tok_thong, |
tok_thong, |
|
tok_hdrext, |
|
|
tok_srcext, |
|
51 |
tok_define, |
tok_define, |
52 |
tok_skel, |
tok_skel, |
53 |
tok_noop, |
tok_noop, |
60 |
extern bucket *symval; |
extern bucket *symval; |
61 |
extern int numval; |
extern int numval; |
62 |
|
|
63 |
void init_lex PARAMS ((void)); |
void lex_init PARAMS ((void)); |
64 |
|
void lex_free PARAMS ((void)); |
65 |
int skip_white_space PARAMS ((void)); |
int skip_white_space PARAMS ((void)); |
66 |
void unlex PARAMS ((int)); |
void unlex PARAMS ((token_t)); |
67 |
void read_type_name PARAMS ((FILE *fin)); |
void read_type_name PARAMS ((FILE *fin)); |
68 |
|
|
69 |
/* Return one of the token-type codes. When an identifier is seen, |
/* Return one of the token-type codes. When an identifier is seen, |
73 |
|
|
74 |
token_t lex PARAMS ((void)); |
token_t lex PARAMS ((void)); |
75 |
|
|
76 |
int parse_percent_token PARAMS ((void)); |
token_t parse_percent_token PARAMS ((void)); |
77 |
|
|
78 |
#endif /* !LEX_H_ */ |
#endif /* !LEX_H_ */ |