From 9f690211058a7f67031248302f1996d96bba2087 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 15 Oct 1995 20:02:41 +0000 Subject: [PATCH] Comment changes. --- src/gram.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/gram.h b/src/gram.h index 1f3c950d..080ce0d9 100644 --- a/src/gram.h +++ b/src/gram.h @@ -1,5 +1,5 @@ /* Data definitions for internal representation of bison's input, - Copyright (C) 1984, 1986, 1989 Free Software Foundation, Inc. + Copyright (C) 1984, 1986, 1989, 1992 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -23,6 +23,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ntokens is the number of tokens, and nvars is the number of variables (nonterminals). nsyms is the total number, ntokens + nvars. + (the true number of token values assigned is ntokens + reduced by one for each alias declaration) + Each symbol (either token or variable) receives a symbol number. Numbers 0 to ntokens-1 are for tokens, and ntokens to nsyms-1 are for variables. Symbol number zero is the end-of-input token. This token @@ -99,7 +102,9 @@ extern int start_symbol; indexed by a token number as returned by the user's yylex routine, it yields the internal token number used by the parser and throughout bison. If translations is zero, the translation table is not used because -the two kinds of token numbers are the same. */ +the two kinds of token numbers are the same. +(It is noted in reader.c that "Nowadays translations is always set to 1...") +*/ extern short *token_translations; extern int translations; -- 2.45.2