Ilya Zakharevich on Fri, 12 Nov 1999 09:11:06 -0500 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Turning a sequence of expr into expr |
On Fri, Nov 12, 1999 at 02:29:59PM +0100, Bill Allombert wrote: > It is perfectly true, it's the difference between a 'seq' and an 'expr' > an 'expr' cannot contains ';' > > ? ?ploth > ploth(X=a,b,expr,{flags=0},{n=0}): > ^^^^ > ? ?for > for(X=a,b,seq): > ^^^ > > Only true control statements handle seq ,if,forxxx, while,until > but not sumxxx,prodx,solve,intnum etc.. Then this should be marked in the "prototype", and the parser should emit a syntax error in such a situation. The simplest way to do it is to make lisexpr() to die if it finds ';' at the end, and make lisseq() use a clone lisexpr_seqok() instead. Ilya