support method based call backs

Simplifies building parser classes which are cleaner and have
optimisation benefits