Discussion:
A4Q2
(too old to reply)
Danny Su
2004-06-27 19:13:09 UTC
Permalink
I have a question regarding boolean expressions.

does boolean expression mean that I shouldn't accept the following?:
if 1 then
endif;

this is probably invalid too:
if 1 && 2 then
endif;

should I write my CFG so that I reject these cases or are they better
handled by semantic analysis that I can let these pass by.

thanks
Danny
Nguyen Nguyen
2004-06-28 05:37:51 UTC
Permalink
No, your CFG does not have to handle this case. You will be doing this in
your next assignment.

Nguyen
Post by Danny Su
I have a question regarding boolean expressions.
if 1 then
endif;
if 1 && 2 then
endif;
should I write my CFG so that I reject these cases or are they better
handled by semantic analysis that I can let these pass by.
thanks
Danny
Loading...