made an indexed based grammar and update rule and item, next the goto bookeeping