--- gforth/float.fs 2011/10/06 21:08:45 1.60 +++ gforth/float.fs 2011/11/14 22:33:22 1.62 @@ -88,7 +88,7 @@ DOES> ( -- r ) \G @code{F.} @code{FE.} and @code{FS.} to @i{u}. to precision ; -: scratch ( r -- addr len ) +: scratch ( -- addr len ) pad precision - precision ; : zeros ( n -- ) 0 max 0 ?DO '0 emit LOOP ; @@ -147,11 +147,12 @@ DOES> ( -- r ) dup recognizer: r:fnumber - : fnum-recognizer ( addr u -- nt int-table true | addr u false ) - 2dup sfnumber dup - IF - drop 2drop r:fnumber true - THEN ; + : fnum-recognizer ( addr u -- float int-table | addr u r:fail ) + 2dup sfnumber + IF + 2drop r:fnumber EXIT + THEN + r:fail ; ' fnum-recognizer forth-recognizer get-recognizers