include col/line information
This commit is contained in:
parent
4363874cd2
commit
2d4879b69f
@ -253,7 +253,16 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
inline void step() { this->i += 1; }
|
inline void step()
|
||||||
|
{
|
||||||
|
if (this->cur() == '\n') {
|
||||||
|
this->col = 1;
|
||||||
|
this->line += 1;
|
||||||
|
} else {
|
||||||
|
this->col += 1;
|
||||||
|
}
|
||||||
|
this->i += 1;
|
||||||
|
}
|
||||||
|
|
||||||
inline auto intern_str(std::string val) -> size_t
|
inline auto intern_str(std::string val) -> size_t
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user