SRD clarifications.


R. Clayton (rclayton@monmouth.edu)
Mon, 14 Feb 2000 11:02:34 -0500 (EST)


  Some things that weren't clarified in our SRD that are coming out in system
  design.

That's good; understanding how these kinds of problems occur is one of the more
important things to take away from this project. Make sure you write your SRD
clarifications down in your SDD because they'll count towards the consistency
part of your SDD grade.

  Is ".8" allowed, or must it be "0.8"?

The informal spec dealt with integers only, so neither is allowed by the
informal spec. Your SRD could have dealt with fixed-point numbers, in which
case the decision is up to you. Because expressions are (should be) an easy
parse, there shouldn't be any difference between .8 and 0.8, but that will
depend on your parser design.

  Must there be an expression between parentheses?

I'm not sure I understand the question. If you're asking whether "()" is a
syntactically valid expression, the answer is no going by the informal spec,
and I would hope also going by your SRD. If you're asking whether "3+5" is a
syntactically valid expression, or must it be "(3+5)", the answer by the
informal spec is both are syntactically valid, and your SRD should give the
same answer.

  Is ".(8+5)" allowed?

Not by the informal spec, and if your SRD allows it, then the SRD also has to
define what it means (.(8+5) = 1.3? or .(8+5) = 0.13?) with enough detail so
that it gets implemented correctly, which should be an interesting trick.



This archive was generated by hypermail 2.0b3 on Thu Mar 30 2000 - 20:50:05 EST