2 using StringBuilder
= System
.Text
.StringBuilder
;
6 /*ANTLR Translator Generator
7 * Project led by Terence Parr at http://www.jGuru.com
8 * Software rights: http://www.antlr.org/license.html
14 // ANTLR C# Code Generator by Micheal Jordan
15 // Kunle Odutola : kunle UNDERSCORE odutola AT hotmail DOT com
16 // Anthony Oguntimehin
18 // With many thanks to Eric V. Smith from the ANTLR list.
21 public class DefaultFileLineFormatter
: FileLineFormatter
23 public override string getFormatString(string fileName
, int line
, int column
)
25 StringBuilder buf
= new StringBuilder();
28 buf
.Append(fileName
+ ":");
38 buf
.Append(":" + column
);
45 return buf
.ToString();