make Parser.parse(in) and call it to fix an error "overloaded method value parse with alternatives: ..." occurs when Parser declared with var or def