src/lexer.c
/* assertion function that prints out line and char number before exiting. */
assertion function that prints out line and char number before exiting.
assertion function that prints out line and char number before exiting .
static void _expect(struct lexer* l, int p, int line)
{
  if (!p)
  {
    fprintf(stderr, "lexer.c line %d ", line);
    fprintf(stderr, "ERROR @ line %u:%u.\n", l->cur_lineno, l->cur_byteno);
  }
  assert(p);
}
static void _expect ( struct lexer * l , int p , int line ) { if ( ! p ) { fprintf ( stderr , " " , line ) ; fprintf ( stderr , " \n " , l -> cur_lineno , l -> cur_byteno ) ; } assert ( p ) ; }
assertion function that prints out line and char number before exiting.
assertion function that prints out line and char number before exiting .