Le 23 juil. 2011 à 20:17, uclacasey a écrit :

> 
> Perhaps is there any way to get feedback from the parser?  For example, if it
> is about to output a specific error message, I could intercept that error
> message, revert, and pass a different token? 
> 
> p.s: if anything sounds outlandish, it's because I'm relatively new to this

That does ring any bell to me, I wouldn't know how to do that.  Maybe you could 
try another way: the scanner ignores the comments (in the sense that it does 
not return a token for them), but stores them somewhere.  Then your parser 
actions read that place to check if some comment was left for it.  You could 
even have a nonterminal symbol in charge of checking for this comment and do 
something about it.


_______________________________________________
help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to