grammar: implement the item set closure() function

Signed-off-by: Peter Williams <pwil3058@gmail.com>
grammar: detect shift/reduce conflicts in a parser state

Signed-off-by: Peter Williams <pwil3058@gmail.com>