parser: get visitor pattern working