home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / fortran / 4887 < prev    next >
Encoding:
Text File  |  1993-01-02  |  1.4 KB  |  44 lines

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!usenet.coe.montana.edu!giac1.oscs.montana.edu!uesu03
  3. From: uesu03@giac1.oscs.montana.edu (Lou Glassy)
  4. Subject: What user groups require BOZ-Literals in Fortran?
  5. Message-ID: <1993Jan2.005215.1703@coe.montana.edu>
  6. Sender: usenet@coe.montana.edu (USENET News System)
  7. Organization: Montana State University, Bozeman  MT
  8. Date: Sat, 2 Jan 1993 00:52:15 GMT
  9. Lines: 33
  10.  
  11. I use the phrase 'BOZ-Literal' to mean integer constants
  12. specified in binary, octal, or hexadecimal form.  That is,
  13. constants like
  14.  
  15.    B'00101101'
  16.  
  17.    O'377'
  18.  
  19.    Z'FFEF0020'
  20.  
  21. The question:  What programmers require constants specified in BOZ form?
  22.  
  23. I'm pondering whether to support BOZ literals in my subset
  24. F90 translator.  My initial inclination is not to, since
  25.  
  26.    [a] my target audience for the compiler is beginning programmers, and
  27.  
  28.    [b] it appears (from quick-and-dirty estimates) that including
  29.        BOZ literals will make the scanner state-transition table swell
  30.        by 40 to 60 percent in size.  This would make verifying the scanner's
  31.        correctness a bit yuckier.
  32.  
  33. However:  if some of you Fortran instructors out there can convince
  34. me otherwise, I could include BOZ support.
  35.  
  36. Thanks,
  37.  
  38. Lou.
  39. -- 
  40. Lou Glassy (uesu03@giac1.oscs.montana.edu)
  41.  
  42.     "That was the equation!  Existence!...Survival 
  43.      must cancel out programming!"          -- Rok 
  44.