This is a simple, almost entirely mechanical, PR. The next_lexeme function turned into an accidental behemoth: it does two different things depending on the input, and returns two different things. Of its many call-sites, only one needs this full functionality.
This is a simple, almost entirely mechanical, PR. The
next_lexeme
function turned into an accidental behemoth: it does two different things depending on the input, and returns two different things. Of its many call-sites, only one needs this full functionality.These two commits thus split this function:
into two:
This makes a lot of the code a little bit easier to understand.