Home  |   Notes  |   Languages  |   Programs  |   Homework

Re: output

New Message Reply About this list Date view Thread view Subject view Author view

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


New Message Reply About this list Date view Thread view Subject view Author view

Home  |   Notes  |   Languages  |   Programs  |   Homework
copyright © 2001 Virginia Tech, ALL RIGHTS RESERVED
Class site maintained by Stephen H. Edwards <edwards@cs.vt.edu>