MParser/Lexer/PositionInsideFile.cs
2018-03-31 21:51:53 +02:00

14 lines
355 B
C#

namespace Lexer
{
public struct PositionInsideFile : IPosition
{
public string File { get; set; }
public int Line { get; set; }
public int Column { get; set; }
public override string ToString()
{
return $"line {Line}, column {Column}" + (File != null ? $" of {File}" : "");
}
}
}