Home | Notes | Languages | Programs | Homework |
Re: output |
Abe Corson (acorson@VT.EDU)
Tue, 23 Oct 2001 13:27:44 -0700
Message-ID: <3.0.6.32.20011023132744.009aeba8@mail.vt.edu> Date: Tue, 23 Oct 2001 13:27:44 -0700 From: Abe Corson <acorson@VT.EDU> Subject: Re: output
At 01:19 PM 10/23/2001 -0400, you wrote:
> What is printed if there are no commands and just an empty list??
An empty command list isn't valid syntax according to the grammar because
it doesn't end with "ireturn", so I believe you should print "Incorrect
command syntax."
Also, a list that JUST contains "ireturn" also wouldn't work, because
"ireturn" is a stack operation that operates on the top element of the
stack. So in that case, you should print "Stack underflow."
Abe Cors
Home | Notes | Languages | Programs | Homework |