3-way branching
John Hascall
hascall at atanasoff.cs.iastate.edu
Fri Aug 4 23:32:02 AEST 1989
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
More information about the Comp.lang.c
mailing list