source: trunk/yao/share/antlr-2.7.7/lib/csharp/antlr.runtime/antlr/IToken.cs @ 1

Last change on this file since 1 was 1, checked in by lnalod, 15 years ago

Initial import of YAO sources

File size: 849 bytes
Line 
1using System;
2
3namespace 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        {
26                int             getColumn();
27                void    setColumn(int c);
28
29                int             getLine();
30                void    setLine(int l);
31
32                string  getFilename();
33                void    setFilename(string name);
34
35                string  getText();
36                void    setText(string t);
37
38                int             Type { get; set; }
39        }
40}
Note: See TracBrowser for help on using the repository browser.