Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!sharkey!atanasoff!atanasoff.cs.iastate.edu!hascall From: hascall@atanasoff.cs.iastate.edu (John Hascall) Newsgroups: comp.lang.c Subject: 3-way branching Message-ID: <1293@atanasoff.cs.iastate.edu> Date: 4 Aug 89 13:32:02 GMT Sender: hascall@atanasoff.cs.iastate.edu Reply-To: hascall@atanasoff.cs.iastate.edu (John Hascall) Distribution: na Organization: Iowa State Univ. Computation Center Lines: 20 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) > ((expr)=0) > ((expr)>0) > 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