1 /* Token type definitions for bison's input reader,
2 Copyright 1984, 1989, 1992, 2000, 2001 Free Software Foundation, Inc.
4 This file is part of Bison, the GNU Compiler Compiler.
6 Bison is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
11 Bison is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with Bison; see the file COPYING. If not, write to
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
24 /* Token-type codes. */
27 tok_undef
, /* Not defined. Used to initial token_t vars. */
36 tok_percent_left_curly
,
53 /* A directive that sets to true its associated variable. */
55 /* A directive that sets its associated variable to the string
62 extern const char *token_buffer
;
63 extern symbol_t
*symval
;
66 void lex_init
PARAMS ((void));
67 void lex_free
PARAMS ((void));
68 int skip_white_space
PARAMS ((void));
69 void unlex
PARAMS ((token_t
));
70 void read_type_name
PARAMS ((FILE *fin
));
71 int xgetc
PARAMS ((FILE *fin
));
73 /* Return one of the token-type codes. When an identifier is seen,
74 the code IDENTIFIER is returned and the name is looked up in the
75 symbol table using symtab.c; symval is set to a pointer to the
78 token_t lex
PARAMS ((void));
79 char literalchar
PARAMS ((void));
81 token_t parse_percent_token
PARAMS ((void));