> Passing this in for someone else:
> 
> [% foo = [1..7]   %] works
> [% foo = [7,1..6] %] doesn't work
> 
> is it normal or is it a bug? looks like a bug to me :)

The grammar allowed by the V2 parser is quite limited.  In particular,
the .. operator can only be used in this way:

    [ sterm .. sterm ]

where sterm is basically just an identifier (variable), quoted
string, ref, or number.

In general, no expressions are allowed in function arguments or lists.
There is also no unary minus.  So none of these work:

    foo(x+1);
    foo(-y);
    foo(1..6);
    [x+1];
    [-y];
    x = 1-1;
    x = -y;

To my knowledge, the grammar, operators and operator precedence aren't
documented in V2.

All of this should be fixed in V3.  In fact, the 2.51 parser already
fixes most (or all) of these issues.

Craig


Reply via email to