|
From: | Paul Eggert |
Subject: | Re: FYI: default %destructor/%printer for error, $undefined, $accept |
Date: | Mon, 21 Aug 2006 16:14:50 -0700 |
User-agent: | Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
"Joel E. Denny" <address@hidden> writes: > As far as I can tell, Bison doesn't permit error token rules in any form > yet. Right? Right. I was thinking if that got added. >> Perhaps if we had some way to specify the semantic value for an error >> token that is generated internally by the parser? Just thinking out >> loud here. > > Can you give me an example of how error token values would be useful? Well, I dunno. Suppose you're parsing HTML and have as a semantic value a list of all the href= values in that subtree. And when you parse a busted subtree you still want its href= values. Again, just thinking out loud.
[Prev in Thread] | Current Thread | [Next in Thread] |