ddpg: add an option to dump parser state information to a file

Signed-off-by: Peter Williams <pwil3058@bigpond.net.au>
dunnart: modify calc example

Signed-off-by: Peter Williams <pwil3058@bigpond.net.au>