modm-io / lbuild

lbuild: a generic, modular code generator in Python 3
https://pypi.org/project/lbuild
BSD 2-Clause "Simplified" License
37 stars 12 forks source link

Add support for numeric multipliers #78

Closed cocasema closed 2 years ago

salkinium commented 2 years ago

I have an even simpler implementation that just… find/replaces the SI units. It's stupid but it probably works well enough? It'll replace the units in the comments as well, but they get ignored anyways.

salkinium commented 2 years ago

I also updated the docs, what do you think?

cocasema commented 2 years ago

I was thinking about the same, but was afraid it would replace more than needed. But... since it's supposed to be only numbers here anyway, not a random text, this should do the right thing :)