[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Revised^3 Draft Comment



 
 
     In going over the grammar in the Revised^3 Report for numbers in
Scheme, I noticed a possible omission.  According to the production
     <ureal R> --> <prefix R> <digit R>+ #* / <digit R>+ #* <suffix>
the production of rationals, 1/2e3 is legal syntax while 1e3/2 is not.
Shouldn't the production be amended to 
     <ureal R> -->
       <prefix R> <digit R>+ #* <suffix> / <digit R>+ #* <suffix>
so that the numerator as well as the denominator may carry a suffix?
In that case, 1/2e3 would mean 1/2000 and 1e3/2 would be 1000/2 (=500).

Mark Meyer
(mmeyer@ti-csl)