class Trenni::ParseError

def initialize(message, buffer, offset)

def initialize(message, buffer, offset)
	super(message)
	
	@buffer = buffer
	@offset = offset
end

def location

def location
	@location ||= Location.new(@buffer.read, @offset)
end

def to_s

def to_s
	"#{buffer.path}#{location}: #{super}\n#{location.line_text}"
end