Jason Luu
2004-07-01 18:07:20 UTC
Is it necessary to check for the order of statments, for example:
begin
// declarations
// statements
end
is accepted but
begin
// statements
// declarations
// statements
end
is rejected.
Also, how do we determine the unary '-' from the unary '+' since unary '+'
is not defined in SL and unary '-' is tokenized as an ADDOP
Thank you.
begin
// declarations
// statements
end
is accepted but
begin
// statements
// declarations
// statements
end
is rejected.
Also, how do we determine the unary '-' from the unary '+' since unary '+'
is not defined in SL and unary '-' is tokenized as an ADDOP
Thank you.