valeri/src/sourcerange.hpp

14 lines
190 B
C++

#pragma once
#include <cstddef>
struct SourcePosition {
size_t line{1};
size_t column{1};
size_t offset{0};
};
struct SourceRange {
SourcePosition start;
SourcePosition end;
};