parser: Fix for empty word list. Oops.

db4
Doug Coleman 2014-10-27 19:38:32 -07:00
parent 8cbfaa9450
commit c71c200063
1 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,8 @@ SYMBOL: auto-use?
! of name conflicts
: no-word ( name -- newword )
dup words-named ignore-forwards
dup [ length 1 = ] [ first private? not ] bi and
dup [ length 1 = ]
[ [ f ] [ first private? not ] if-empty ] bi and
auto-use? get and
[ nip first no-word-restarted ]
[ <no-word-error> throw-restarts no-word-restarted ]