Translate only a part of the file and the rest translate 1 on 1
0 posts in topic
Flat View  Flat View

Posted By:   claudia_sion
Posted On:   Monday, March 28, 2005 09:26 AM

I have to parse a file, but only those parts that match the parser rules must be translated the rest of the file must be left unchanged (translated 1-to-1). The problem is that if in the lexer I set the whitespaces to Token.SKIP then in the parser those parts that I want to translate 1-1 will be printed without the whitespaces and I need to print the whitespaces. If anyone has a solution for this problem please help me.
Thank you.

About | Sitemap | Contact