Add comment callback to scanner and parser

This adds a hook to the parser that can be used to later attach comments to the tree.

#206