On Fri, Mar 02, 2007 at 03:02:43PM +0100, [EMAIL PROTECTED] wrote:
> On Friday 02 March 2007 14:54, Edsko de Vries wrote:
> > If you have a
> > good solution for that, I'd be very interested to hear it!
> look at pl1gcc.sourceforge.net
> 
> in the scanner you 'just' have to do all the bean counting yourself, and you 
> have to come up with a prober structure to keep the locations, but other than 
> that it is straight forward to implement.

The problem is that our scanner is rather complicated (lexical analysis
for PHP is not easy), and I'd rather not have the logic of the "bean
counting" as you refer to it mixed throughout with the logic of the
token generation. I've considered modifying YY_INPUT to keep count
automatically, but then you have to worry about the scanner looking
ahead and then backtracking, calls to yyunput, etc. 

Edsko


_______________________________________________
[email protected] http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to