Implements LR0 parser head for shift and reduce actions (incomplete)