Raise an exception when all input is consumed before finishing parsing