help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to make Bison disregard tokens?


From: henrik . sorensen
Subject: Re: How to make Bison disregard tokens?
Date: Fri, 2 Mar 2007 12:55:29 +0100
User-agent: KMail/1.9.5

On Friday 02 March 2007 12:30, Edsko de Vries wrote:
> Hi,
>
> Is there any way I can make Bison ignore tokens when it can't deal with
> them? I'll try to explain. For every completely blank line in the input,
> my leexer generates a NOP token. In some situations the parser can deal
> with this NOP token; in others it can't. 
If you need to ignore the blank lines, just make sure your scanner doesnt 
return a token to the parser.

hope this helps
Henrik




reply via email to

[Prev in Thread] Current Thread [Next in Thread]