That was very helpful Gavin. I would proceed with your first alternative, as it looks lot more simple. I checked it and its working fine. Gokul. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20081226/7d7210e8/attachment.html