X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/bbb5bcc6f85b9ae3f951ab062455767318b827ad..e9f87b5b7df2e328d2e4196d276c0d96594c906b:/src/lex.h?ds=inline diff --git a/src/lex.h b/src/lex.h index c6330963..9f3cfe3a 100644 --- a/src/lex.h +++ b/src/lex.h @@ -24,6 +24,7 @@ /* Token-type codes. */ typedef enum token_e { + tok_undef, /* Not defined. Used to initial token_t vars. */ tok_eof, tok_identifier, tok_comma, @@ -47,10 +48,11 @@ typedef enum token_e tok_number, tok_expect, tok_thong, - tok_hdrext, - tok_srcext, + tok_define, + tok_skel, tok_noop, - tok_setopt, + tok_intopt, + tok_stropt, tok_illegal, tok_obsolete } token_t; @@ -59,10 +61,12 @@ extern const char *token_buffer; extern bucket *symval; extern int numval; -void init_lex PARAMS ((void)); +void lex_init PARAMS ((void)); +void lex_free PARAMS ((void)); int skip_white_space PARAMS ((void)); -void unlex PARAMS ((int)); +void unlex PARAMS ((token_t)); void read_type_name PARAMS ((FILE *fin)); +int xgetc PARAMS ((FILE *fin)); /* Return one of the token-type codes. When an identifier is seen, the code IDENTIFIER is returned and the name is looked up in the @@ -70,7 +74,8 @@ void read_type_name PARAMS ((FILE *fin)); entry found. */ token_t lex PARAMS ((void)); +char literalchar PARAMS ((void)); -int parse_percent_token PARAMS ((void)); +token_t parse_percent_token PARAMS ((void)); #endif /* !LEX_H_ */