[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
end token in rules, %type, %printer, or %destructor
From: |
Joel E. Denny |
Subject: |
end token in rules, %type, %printer, or %destructor |
Date: |
Fri, 7 Jul 2006 22:44:02 -0400 (EDT) |
If the user declares his own end token (token 0), should Bison allow him
to put it in a grammar rule? Currently, it does.
Should Bison allow the user to declare a %type, %printer, and %destructor
for the end token? Currently, it does. However, until we figure out
whether glr.c really needs to pop the end token twice while yacc.c doesn't
pop it at all, I think we should disallow these.
For now, I'm planning to prevent the default %printer and %destructor from
being used for the end token... whether the user declares the end token or
not.
Joel
- end token in rules, %type, %printer, or %destructor,
Joel E. Denny <=