wrote parser for variable assignment