1 using System; 2 3 namespace antlr 4 { 5 /*ANTLR Translator Generator 6 * Project led by Terence Parr at http://www.jGuru.com 7 * Software rights: http://www.antlr.org/license.html 8 * 9 * $Id:$ 10 */ 11 12 // 13 // ANTLR C# Code Generator by Micheal Jordan 14 // Kunle Odutola : kunle UNDERSCORE odutola AT hotmail DOT com 15 // Anthony Oguntimehin 16 // 17 // With many thanks to Eric V. Smith from the ANTLR list. 18 // 19 20 /// <summary> 21 /// A token is minimally a token type. Subclasses can add the text matched 22 /// for the token and line info. 23 /// </summary> 24 public interface IToken 25 { getColumn()26 int getColumn(); setColumn(int c)27 void setColumn(int c); 28 getLine()29 int getLine(); setLine(int l)30 void setLine(int l); 31 getFilename()32 string getFilename(); setFilename(string name)33 void setFilename(string name); 34 getText()35 string getText(); setText(string t)36 void setText(string t); 37 38 int Type { get; set; } 39 } 40 }