home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.23 / text0066.txt < prev    next >
Encoding:
Text File  |  1991-06-15  |  1.7 KB  |  43 lines

  1. Submitted-by: phil@henson.cc.wwu.edu (Phil Nelson)
  2.  
  3. andrew@alice.att.com (Andrew Hume) writes:
  4.  
  5. >    Can someone help clear up my misconceptions?
  6.  
  7. I'll try.
  8.  
  9. >I recently read someone complain about difficulties implementing
  10. >bc from the spec in 1003.2 and some quick response from the author
  11.  
  12. First, it was not complaining about difficulties in implementing bc
  13. from the spec.  It was very easy to implement from the spec.  The
  14. problems were that the spec had errors.  That is why the author
  15. came back with a quick response.
  16.  
  17. >of that spec. What puzzled me is the underlying assumption that
  18. >you are supposed to be able to implement from the 1003.2 description.
  19. >Is this supposed to be true? (it obviously isn't for make, for example.)
  20. >I thought 1003.2 simply described stuff so you can use it, not implement it.
  21.  
  22. At least for the bc spec, a yacc grammar is given and stated to be the
  23. "correct" grammar for bc.  If that doesn't imply direct implementation 
  24. details, I'm not sure what does.  In fact, it describes in very great
  25. detail how a bc processor is supposed to work.  (i.e. Internal representation
  26. must be in decimal.)  In my reading of the bc spec, it sounds like
  27. it is directed at an implementor and not a user.  A user could get all
  28. the needed information out of the spec, but it is not a user manual.
  29.  
  30. It does leave a lot of room for different ways of doing the implementation,
  31. but I think that if one describes in detail how a program should work,
  32. a programmer should be able to take that spec and implement a program
  33. that works as stated in the spec.
  34.  
  35. I would hope that the rest of the POSIX documents can be used in the same
  36. way as the bc spec.
  37.  
  38. --Phil Nelson
  39.  
  40.  
  41. Volume-Number: Volume 23, Number 70
  42.  
  43.