Bill Allombert on Wed, 8 Nov 2000 19:00:08 +0100 (MET)

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: grammar question ?

I have a partial reponse

the prototype of 'for' is 


This mean that the first argument of for must be a variable name followed by a equal signe followed by a GEN.

GP could accept

for( x=seq1, seq2, seq3)

for( v=[];j=0, 10, v=concat(v,j^2))

would be understand as
j=0;for(v=0, 10, v=concat(v,j^2))

because the value of the seq [];j=0 is 0.

I have discussed with Karim the point of allowing seq everywhere, but
it seems the current behavior come from historical reason, when seq
parsing was mush lower than expr parsing.