source: trunk/yao/share/antlr-2.7.7/lib/csharp/antlr.runtime/antlr/FileLineFormatter.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: 984 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        public abstract class FileLineFormatter
21        {
22               
23                private static FileLineFormatter formatter = new DefaultFileLineFormatter();
24               
25                public static FileLineFormatter getFormatter()
26                {
27                        return formatter;
28                }
29               
30                public static void  setFormatter(FileLineFormatter f)
31                {
32                        formatter = f;
33                }
34               
35                /*@param fileName the file that should appear in the prefix. (or null)
36                * @param line the line (or -1)
37                * @param column the column (or -1)
38                */
39                public abstract string getFormatString(string fileName, int line, int column);
40        }
41}
Note: See TracBrowser for help on using the repository browser.