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