src/lexer.c
/* skip to next token while handling line-number and column/byte-number. */
skip to next token while handling line-number and column/byte-number.
skip to next token while handling line - number and column / byte - number .
static void next(struct lexer* l)
{
  expect(l, l->buffer != 0);
  if (l->buffer[0] == '\n')
  {
    l->cur_lineno += 1;
    l->cur_byteno = 0;
  }
  l->cur_byteno += 1;
  l->buffer += 1;
}
static void next ( struct lexer * l ) { expect ( l , l -> buffer != 0 ) ; if ( l -> buffer [ 0 ] == ' \n ' ) { l -> cur_lineno += 1 ; l -> cur_byteno = 0 ; } l -> cur_byteno += 1 ; l -> buffer += 1 ; }
skip to next token while handling line-number and column/byte-number.
skip to next token while handling line - number and column / byte - number .