R. Clayton (rclayton@monmouth.edu)
(no date)
Are there be any spaces before and after the key words: "is", ":", "="?
At least one non-newline space character is required only where ambiguity would
result with no space character. For example, there must be at least one space
character before the "is" in a unit definitions; otherwise, it is impossible to
tell if "footis m/3" is a correct or incorrect. However, a space following the
"is" may not be required; for example "foot is0.3*m" is correct.
What are space characters?
As has been the case in every assignment throughout the semester, a space
character is any character that satisfies the std::isspace() predicate. A
non-newline space character is any space character that is not equal to '\n'.
Is a line with only space characters an error?
Because there is no ambiguity in this case, non-newline space characters are
ignored and there is no error.
From the grammar, looks like as though a value could be either integer of
double. Is that correct?
Yes.
If case doesn't matter, can the program output everything in lower case?
As a courtesy to the users, your program should maintain on output the
capitalization provided on input.
This archive was generated by hypermail 2.0b3 on Fri May 09 2003 - 15:30:05 EDT