Made Glr_parser.tokenize_via_whitespace tail-recursive, confirmed that it works when fed all of "The Adventures of Sherlock Holmes".