Hi folks,
I am trying to write a parser using perl parsr package. For Lexer I'm using Parse:: packages and for parser there is byacc(object oriented).
Now, problem is that I want to maintain a variable (for line number, '\n' specifies line number increment) from the lexer but I don't want to return the token for this newline to the parser. I will just ignore the '\n' after modifying the variable.
Is there any trick to associate an action with a regular expression, without sending the token to the parser?