This project has moved and is read-only. For the latest updates, please go here.

Translate Language A to B

Sep 30, 2011 at 3:03 PM


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.


Sep 30, 2011 at 10: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.

Oct 1, 2011 at 6: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.

Oct 2, 2011 at 5:03 PM

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