X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/511e79b3d4b1d4f3cab53c24bffe25e360a78326..43168960182a2537605d6a1262a39e4e43c57d98:/src/lex.h?ds=sidebyside diff --git a/src/lex.h b/src/lex.h index f1425bd2..df825a8b 100644 --- a/src/lex.h +++ b/src/lex.h @@ -1,5 +1,5 @@ /* Token type definitions for bison's input reader, - Copyright 1984, 1989, 1992, 2000 Free Software Foundation, Inc. + Copyright 1984, 1989, 1992, 2000, 2001 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -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,18 +48,23 @@ typedef enum token_e tok_number, tok_expect, tok_thong, + tok_define, + tok_skel, tok_noop, - tok_setopt, - tok_illegal + tok_intopt, + tok_stropt, + tok_illegal, + tok_obsolete } token_t; -extern char *token_buffer; +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)); /* Return one of the token-type codes. When an identifier is seen, @@ -67,7 +73,8 @@ void read_type_name PARAMS ((FILE *fin)); entry found. */ token_t lex PARAMS ((void)); +int literalchar PARAMS ((struct obstack *out, int *pcode, char term)); -int parse_percent_token PARAMS ((void)); +token_t parse_percent_token PARAMS ((void)); #endif /* !LEX_H_ */