2 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
3 * See the copyright notice in the ACK home directory, in the file "Copyright".
5 /* $Id: tokenname.c,v 1.3 1994/06/24 11:38:25 ceriel Exp $ */
6 /* TOKEN NAME DEFINITIONS */
14 struct tokenname { /* Used for defining the name of a
15 token as identified by its symbol
22 /* To centralize the declaration of %tokens, their presence in this
23 file is taken as their declaration. The Makefile will produce
24 a grammar file (tokenfile.g) from this file.
25 Moreover, rather than looking up a symbol in all these lists
26 to find its printable name, a fast version of symbol2str() is
27 generated from these tables.
28 Consequenty some of these tables are not referenced explicitly
29 in the C text any more. To save space and to avoid lint confusion,
30 these have been made pseudo-invisible by #ifdefs.
34 struct tokenname tkspec[] = { /* the names of the special tokens */
35 {IDENTIFIER, "identifier"},
37 {FILESPECIFIER, "filespecifier"},
42 struct tokenname tkcomp[] = { /* names of the composite tokens */
68 struct tokenname tkfunny[] = { /* internal keywords */
69 {ERRONEOUS, "erroneous"},