Parser for Simple Grammar