[comp.lang.c] 3-way branching

hascall@atanasoff.cs.iastate.edu (John Hascall) (08/04/89)

    This is a respones to an article from Marv Rubenstein (sp?), [sorry,
    rn barfed with "interp buffer overflow" when I tried to do a real
    followup].

>Note that it is not hard (as compiler writing goes) to build a compiler which
>when given:
>                                                                             
>          if
>           ((expr)<0) <statement-list>
>           ((expr)=0) <statement-list>
>           ((expr)>0) <statement-list>
>          fi

   How do you tell the expression from the statement when an expression
is a statement in C?  Sure you could follow the statement with ';' but
that could be a long way to look ahead to determine which you were looking
at.

--John