1 ! Copyright (C) 2004, 2006 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
4 USING: arrays errors generic hashtables io kernel
5 kernel-internals math memory modules namespaces parser
6 prettyprint sequences vectors words ;
8 "Bootstrap stage 1..." print flush
10 "resource:/core/bootstrap/primitives.factor" run-file
12 ! The [ ] make form creates a boot quotation
19 "core/compiler" require
20 "core/documentation" require
21 "core/io/buffer" require
23 "core/ui/tools" require
24 "core/ui/handbook" require
25 "core/compiler/" architecture get append require
26 "core/handbook" require
29 "resource:/core/bootstrap/boot-stage2.factor"
35 "!syntax" get hash>alist [
37 "syntax" over set-word-vocabulary
38 >r "!" ?head drop r> 2dup set-word-name
40 ] map alist>hash "syntax" set
43 "!syntax" vocabularies get remove-hash
45 "Building generic words..." print flush
46 all-words [ generic? ] subset [ make-generic ] each