home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / std_unix / volume.23 / text0049.txt < prev    next >
Encoding:
Text File  |  1991-06-15  |  1.4 KB  |  45 lines

  1. Submitted-by: phil@cs.wwu.edu (Phil Nelson)
  2.  
  3. Hello,
  4.  
  5.   I've been working on an implementation of bc and have been
  6. using the POSIX draft as a definition of the language.  In
  7. working on the program, I have found several problems with
  8. the draft.  I have P1003.2/D11 and any line number references
  9. are from that draft.  The following are what I consider to be
  10. problems.  If I am wrong, please help me understand what the
  11. committee intended.
  12.  
  13.   1)  The character '-' "shall" be recognized as both the token
  14.       ADD_OP and the token '-'.
  15.       lines: 1587, 1670, 1737, 1738, 1749-1751
  16.  
  17.   2)  Lines 1642-1644 are
  18.          parameter_list       : LETTER
  19.                               | define_list ',' LETTER
  20.       I presume it should be
  21.          parameter_list       : LETTER
  22.                               | parameter_list ',' LETTER
  23.  
  24.   3)  Lines 1836-1838 state "A whole array passed as an argument
  25.       shall be specified by the array name followed by empty square
  26.       brackets." 
  27.       a) I find no provision in the grammar in the definition of the
  28.          parameter list define a parameter as an array.  (See lines
  29.          1642-1644.)
  30.       b) No provision is made in the grammar for the specification of
  31.          an array in the actual function call. (See 1657-1659.)
  32.  
  33.  
  34.   I am interested in knowing if these have been noticed before and if
  35.   there are changes to the draft.
  36.  
  37.   Phil Nelson
  38.   phil@cs.wwu.edu
  39.  
  40.  
  41.  
  42.  
  43. Volume-Number: Volume 23, Number 53
  44.  
  45.