checking parser in the head

of shift_reduce_parser:init/2