diff options
Diffstat (limited to 'minicc.h')
-rw-r--r-- | minicc.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -10,8 +10,12 @@ using index_t = size_t; std::vector<std::string> split(std::string s); struct Location { - size_t line; - size_t column; + size_t line{1}; + size_t column{1}; + size_t pos{0}; + + void advance(bool newline = false); + std::string toString(); }; bool operator==(const Location &a, const Location &b); |