Discussion:
A5 - variable expressions
(too old to reply)
James Schofield
2004-07-09 04:18:55 UTC
Permalink
In the provided SL.cup, varexpr is defined as

varexpr ::= ID
| varexpr OPENS expr CLOSES;

This would accept an expression of the form "x[3][5]". I assume that
this is a mistake, and we don't actually have to worry about
multi-dimensional arrays? :)

James
Troy Mark Gonsalves
2004-07-09 20:13:54 UTC
Permalink
Fixed...at least the CS version is fixed...our will be fixed soon.

should be
varexpr ::= ID
| ID OPENS expr CLOSES;

Troy
Post by James Schofield
In the provided SL.cup, varexpr is defined as
varexpr ::= ID
| varexpr OPENS expr CLOSES;
This would accept an expression of the form "x[3][5]". I assume that
this is a mistake, and we don't actually have to worry about
multi-dimensional arrays? :)
James
Loading...