public virtual IToken NewToken(int ttype, string text, int pos) { TemplateToken t = new TemplateToken(ttype, text); t.StartIndex = startCharIndex; t.StopIndex = input.Index - 1; t.Line = input.Line; t.CharPositionInLine = pos; return t; }