[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: end token in rules, %type, %printer, or %destructor
From: |
Joel E. Denny |
Subject: |
Re: end token in rules, %type, %printer, or %destructor |
Date: |
Sat, 8 Jul 2006 10:52:42 -0400 (EDT) |
On Sat, 8 Jul 2006, Frans Englich wrote:
> On Saturday 08 July 2006 02:44, Joel E. Denny wrote:
> > If the user declares his own end token (token 0), should Bison allow him
> > to put it in a grammar rule? Currently, it does.
>
> Hm, could you elaborate on this? I would very much like to create a token for
> token '0'(EOF).
%token END 0 "end of file"
You can find that somewhere in the C++ section of the manual.
Do you have any need to put END in your grammar? Do you have any need to
give it a semantic value?
> You're welcome to follow up thread "Enum for token '0', EOF"
> on help-bison.
I don't seem to have the message. Could you post a follow-up with that
information? That'll save me from having to figure out how to fetch an
old message.
Joel