NASL2: precedence of 'logical NOT'
Michel Arboi <[email protected]>
| Newsgroups | gmane.comp.security.nessus.devel |
|---|---|
| Message-ID | <1045427279.1010.15.camel@rotissoire> |
First I forgot to put '!' in the list of %prec instruction. Then I added it, but probably in the wrong place. _Currently_, things like ! x == y are parsed as (!x) == y, which is wrong IMHO. It should be ! (x == y) Worse "! x >< y" is parsed as "(!x) >< y" which is absurd. So, the priority of NOT should be set _below_ the priority of the compare operators. Where exactly? Below AND and OR? Or not? i.e. "! x && y" = "! (x && y)" or "(!x) && y" ? I vote for the 2nd interpretation.