%token X %left PLUS /* precedence from lowest to highest */ %% expr : X | expr PLUS expr | expr expr /* implicit times */ ;