Fix for extra whitespace in TDB pre-parser
First attempt at TDB grammar definition
Delinting and some testing for generating piecewise functions from parameters and functions