adapt interface of primitive parser implementation for much easier usage.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>