Using regular expressions to hack our way towards AMDfication

And tweaks to our code styles
> “(…) generate define blocks (…)”

Doesn’t sound good…