[gforth] / gforth / kernel / int.fs  

gforth: gforth/kernel/int.fs

Diff for /gforth/kernel/int.fs between version 1.2 and 1.3

version 1.2, Wed Jun 17 16:55:17 1998 UTC version 1.3, Wed Jul 8 16:47:33 1998 UTC
Line 25 
Line 25 
   
 \ word parse                                           23feb93py  \ word parse                                           23feb93py
   
 : parse-word  ( char -- addr len ) \ gforth  : sword  ( char -- addr len ) \ gforth
     \G parses like @code{word}, but the output is like @code{parse} output
     \ this word was called PARSE-WORD until 0.3.0, but Open Firmware and
     \ dpANS6 A.6.2.2008 have a word with that name that behaves
     \ differently (like NAME).
   source 2dup >r >r >in @ over min /string    source 2dup >r >r >in @ over min /string
   rot dup bl = IF  drop (parse-white)  ELSE  (word)  THEN    rot dup bl = IF  drop (parse-white)  ELSE  (word)  THEN
   2dup + r> - 1+ r> min >in ! ;    2dup + r> - 1+ r> min >in ! ;
   
 : word   ( char -- addr ) \ core  : word   ( char -- addr ) \ core
   parse-word here place  bl here count + c!  here ;    sword here place  bl here count + c!  here ;
   
 : parse    ( char -- addr len ) \ core-ext  : parse    ( char -- addr len ) \ core-ext
   >r  source  >in @ over min /string  over  swap r>  scan >r    >r  source  >in @ over min /string  over  swap r>  scan >r


Generate output suitable for use with a patch program
Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help