[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Bitwise confusion?
 
- From: Luiz Henrique de Figueiredo <lhf@...>
 
- Date: Thu, 7 Jan 2016 23:13:00 -0200
 
> OK, fair enough. I may look into tweaking the parser to accept != as
> well as ~= for my own use, though that depends on whether I can wrap
> my brain around the parser.
It's the lexer that needs to be hacked and it's pretty easy;
just add this in function llex near to "case '~'":
      case '!': {
        next(ls);
        if (check_next1(ls, '=')) return TK_NE;
        else return '!';
      }