delimiters in conditionals

rcd at opus.UUCP rcd at opus.UUCP
Thu May 24 11:38:04 AEST 1984


<>
>	Anyone who is a serious student of programming linguistics,
>    should realize that a delimiter is neccessary to separate the
>    expression from the statement in all conditional language-constucts
>    -- if you want to keep your grammer LALR(1) (almost a given).

Not at all true.  It depends on the statement and expression structure of
the language.  You can take the 'then' out of the Pascal 'if' without
introducing any ambiguity.  Really--ask your parser-generator (I did!)
-- 
...Stop to smell the flowers.				Dick Dunn
{hao,ucbvax,allegra}!nbires!rcd				(303) 444-5710 x3086



More information about the Comp.lang.c mailing list