dunnart: put a function wrapper around the generated parser

Signed-off-by: Peter Williams <pwil3058@gmail.com>