factor/basis/bootstrap/finish-bootstrap.factor

23 lines
515 B
Factor
Raw Normal View History

2008-12-08 15:58:00 -05:00
USING: init command-line debugger system continuations
2009-11-20 01:55:16 -05:00
namespaces eval kernel vocabs.loader io ;
2008-12-08 15:58:00 -05:00
[
boot
2009-11-20 01:55:16 -05:00
do-startup-hooks
2008-12-08 15:58:00 -05:00
[
2009-11-20 01:55:16 -05:00
(command-line) parse-command-line
load-vocab-roots
run-user-init
"e" get script get or [
"e" get [ eval( -- ) ] when*
script get [ run-script ] when*
] [
"run" get run
] if
2009-11-20 01:55:16 -05:00
output-stream get [ stream-flush ] when*
0 exit
] [ print-error 1 exit ] recover
] set-startup-quot