Hey guys,
For my parser I need to be able to parse a certain token at any place, but only in some places it is part of a rule. In other cases this token should be ignored after which the parser just procedes to the next token. Is this possible with Happy? Should I use the monadic parser to achieve this?
More concretely, I have tokenized some sourcecode which contains comments, these should be ignored except when they are located above a function, in which case I want them to parse.
Any ideas about this issue are greatly appreciated!
Thanks,
Tom