aradi / fypp

Python powered Fortran preprocessor
http://fypp.readthedocs.io
BSD 2-Clause "Simplified" License
180 stars 30 forks source link

Added *_factory arguments to Fypp ctor, to allow custom components #15

Closed rhdtownsend closed 3 years ago

rhdtownsend commented 3 years ago

These small changes allow customization of the parser, builder & renderer components -- in my particular case, to allow automated dependency generation to work. One possible weakness is the use of inspect.signature to check the signature of the factory methods -- not sure this will work for python < 3.3.

rhdtownsend commented 3 years ago

Added evalauator_factory argument, together with docstring entries for new arguments and Change Log entry.