Fix silly DEFER: error
parent
fb96fe25c1
commit
8bff6eba52
|
@ -485,3 +485,5 @@ must-fail-with
|
|||
[ t ] [ "staging-problem-test-1" "parser.tests" lookup >boolean ] unit-test
|
||||
|
||||
[ t ] [ "staging-problem-test-2" "parser.tests" lookup >boolean ] unit-test
|
||||
|
||||
[ "DEFER: blah" eval ] [ error>> no-current-vocab? ] must-fail-with
|
||||
|
|
|
@ -236,7 +236,7 @@ PREDICATE: unexpected-eof < unexpected
|
|||
ERROR: no-current-vocab ;
|
||||
|
||||
M: no-current-vocab summary ( obj -- )
|
||||
drop "Current vocabulary is f, use IN:" ;
|
||||
drop "Not in a vocabulary; IN: form required" ;
|
||||
|
||||
: current-vocab ( -- str )
|
||||
in get [ no-current-vocab ] unless* ;
|
||||
|
|
|
@ -100,7 +100,7 @@ IN: bootstrap.syntax
|
|||
] define-syntax
|
||||
|
||||
"DEFER:" [
|
||||
scan in get create
|
||||
scan current-vocab create
|
||||
dup old-definitions get [ delete-at ] with each
|
||||
set-word
|
||||
] define-syntax
|
||||
|
|
Loading…
Reference in New Issue