in reply to Re: Help Creating a Code Filter
in thread Help Creating a Code Filter
If you do take the regexp approach, I would suggest doing the conversion in multiple passes, e.g. remove the comments, then convert the small/local constructs, then convert the larger ones. You probably also want to order your patterns from most-specific to most-general. You are lucky that you're running the result through a C++ compiler, since if you mistranslate something, odds are good that the compiler will catch it.
|
|---|