In article <2024Aug5.171800@mips.complang.tuwien.ac.at>,   
   Anton Ertl wrote:   
   >mhx@iae.nl (mhx) writes:   
   >>On Mon, 5 Aug 2024 12:26:26 +0000, dxf wrote:   
   >>> Don't know but to this day Mitch Bradley (ANS, Open Firmware) still uses   
   >>> parsing words to interpret hex, double, float numbers.   
   >>   
   >>"de gustibus non disputandum est."   
   >>   
   >>> He also uses state-smart words.   
   >>   
   >>Show me a Forther *without* strong opinions *and* unfathomable   
   >>inconsistencies.   
   >   
   >In this case it's actually consistent: Mitch Bradley finds the   
   >pitfalls of STATE-smart words acceptable, so he uses such words to   
   >deal with various literals.   
   >   
   >I, OTOH, don't consider them to be acceptable, so I prefer   
   >recognizers, like the standard already has for words, single and   
   >double integer numbers, and FP numbers.   
      
   Actually there is not much difference between   
    DX ABCD   
   and   
    0x ABCD   
   and   
    0xABCD   
   or   
    $ABCD   
      
   As long as you make 0x/$ a PREFIX and recognize that   
   it is inevitable that numbers are state-smart.   
   Making the expression into a single word solves much.   
   The whole recognizer thing becomes superfluous at the expense   
   of 5 words in INTERPRET.   
      
   >- anton   
      
   Groetjes Albert   
   --   
   Don't praise the day before the evening. One swallow doesn't make spring.   
   You must not say "hey" before you have crossed the bridge. Don't sell the   
   hide of the bear until you shot it. Better one bird in the hand than ten in   
   the air. First gain is a cat purring. - the Wise from Antrim -   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|