updated parser to lr(1). testing