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
|
2010-01-25 01:20:13 -05:00
|
|
|
|
|
|
|
"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
|