Casino,
Thanks, but I have used the patch for Object oriented interface with my byacc package. So there is no problem with the object oriented interface.
I found that I dont have much control over the perl lexer.
I have a lexer handle with the list of tokens defined in @tokens.
$libLexer = Parse::YYLex->new(@tokens);
I skipped the '\n' using the following.
Parse::YYLex->skip('([\\ \t\r\n]+)|(\/\*.*\*\/)');
But now I want to associate an action with '\n', but dont want to modify the rules for this in the existing grammar, which is working fine without this line number facility.
Is it possible to ignore '\n' after performing an associated action?