Show
Ignore:
Timestamp:
06/11/07 04:07:02 (18 months ago)
Author:
krobillard
Message:

Thune - Simplified macros with macro! datatype.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/thune/thread_safe/mkboot.t

    r377 r408  
    4141:boot-script 
    4242 
    43  
    4443{ 
    4544logic! 1 make dup :yes :on 
     
    134133  none :os 
    135134  [] :devices 
    136   [ 
    137     [ 
    138       [word word!/lit-word! def] [ 
    139         def: word: reader-macros last set 
    140       ] func :macro 
    141  
    142       [word word!/lit-word! sig block! body block!] [ 
    143         sig  kernel-ops infuse 
    144         body kernel-ops infuse 
    145         func word: reader-macros last set 
    146       ] func :macrof 
    147  
    148       [n] [[n: 'add word! as] reduce] func :+ 
    149       [n] [[n: 'sub word! as] reduce] func :- 
    150       [n] [[n: 'mul word! as] reduce] func :* 
    151       [n] [[n: 'div word! as] reduce] func :/ 
    152     ] context 
    153   ] reduce :reader-macros 
    154135] 
    155136context :script-env