[antlr-interest] Line number in C#
Micheal J
open.zone at virgin.net
Wed Aug 24 02:56:48 PDT 2005
public class LineNumberAST : CommonAST
{
private int _line;
private int _col;
public LineNumberAST()
{
}
public LineNumberAST(Token tok) : base(tok)
{
}
public override void initialize(Token tok)
{
base.initialize(tok);
_line = tok.getLine();
_col = tok.getColumn();
}
public int Line
{
get { return _line; }
set { _line = value; }
}
public int Column
{
get { return _col; }
set { _col = value; }
}
}
More information about the antlr-interest
mailing list