[FEATURE] Allow parameterisation of the boolean grammar