[Compiler-sig] Bug in astmodule?

Neal Norwitz neal@metaslash.com
Fri, 19 Apr 2002 13:28:12 -0400


Jeremy Hylton wrote:
> 
> >>>>> "NN" == Neal Norwitz <neal@metaslash.com> writes:
> 
>   NN>             if (strcmp(STR(CHILD(n, 1)), "in") == 0)
>   NN>                 return NotIn;
>   NN>             if (strcmp(STR(CHILD(n, 0)), "is") == 0)
>   NN>                 return IsNot;
> 
>   NN> Shouldn't the 2nd if, do CHILD(n, 1) like the first?
> 
> No.  One is checking "not in" and the other is "is not".

Oops, I obviously wasn't thinking.  It makes perfect sense.

Neal