Changeset 178 for trunk/thune/mkboot.t

Show
Ignore:
Timestamp:
06/10/06 00:38:50 (3 years ago)
Author:
krobillard
Message:

Thune -

Reduce now evaluates blocks.
Added 'to-text and 'console.out. Print & prin are now functions.
Fixed un-initialized word.valBlks.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/thune/mkboot.t

    r174 r178  
    8484func :foreach       ; (ser words body -- ) 
    8585 
     86[reduce to-text console.out] proc :prin  ;(val -- ) 
     87 
     88[reduce to-text console.out eol console.out] proc :print   ;(val -- ) 
     89 
    8690[error! swap make throw] proc :error 
    8791[swap context bind proc] proc :proc.env      ;(env body -- proc) 
     
    110114    [ 
    111115        :tok to eol tok: skip 
    112             (tok tail? iff ({  "} prin tok nop prin {\n"} print)) 
     116            (tok tail? iff ({  "} prin tok prin {\n"} print)) 
    113117    ] 
    114118    parse.some drop