templater

Hi Petr,

I checked your new version of templater - it looks and works quite nice! I want to use the checker now to see which files need to be “normalized” in regard to the template structure. For example many namespaces are closed like this:

} // namespace Package;

instead of

} // Package

but all could easily be fixed using a regexp.

I’ve renamed templatesChecker.py and templatesGenerator.py to checker.py and generator.py because using camel case for a command-line script looks kind of weird to me and the hyphen is forbidden for Python module names. Maybe you could have a look at developers/peter/calitko-templates.

I’ve also changed the default location value for the templates location to templater/Templates so that I could call the scrips from the project root like that:

templater/checker.py Protocols/BitTorrent/Packets/Have

unfortunately that breaks templater/templaterTester.py - maybe you could have a look?

It might be nice as well to have a switch for short messages - e.g. only saying include guards not found. That could actually be the default and the option would be –long-messages for example… just an idea.

Regards,

Peter

Would you like to post a relpy?


This post starts a thread.
Follow-ups:
Re: templater
Hi Petr, The checker is doing a really amazing job! It's really great you wrote it and I think we will be using it a lot! It contributes to ensuring that (more...)