public String GetText(ICharStream input) { // index is first lookahead char, don't include. return input.GetText(Interval.Of(startIndex, input.Index - 1)); }