Move lexer/parser members into header file

Note: this patch was inspired by crazyjul's patch