JLANG-18 consistent handling of an end of buffer for parsers.