Translate Language A to B

Sep 30, 2011 at 2:03 PM

hi,

I work on language translator.

Everything works perfectly.

but I lose the comments  in the target language.

you have a solution to have AstNode with CommentTerminal?

thanks a lot.

Nicolas

Coordinator
Sep 30, 2011 at 9:52 PM

Unfortunately the answer is no, there's no built-in facility to retain comments. I think it would be easy with a custom token filter. I will look into adding this feature.

Coordinator
Oct 1, 2011 at 5:46 PM

if you can wait for a day or two - I'm preparing update, comment handling will be there. Should be able to upload it by tom (Sunday) night.

Coordinator
Oct 2, 2011 at 4:03 PM

Just submitted new version, it's there. ParseTreeNode now has Comments property - a collection of all comment tokens that precede this node