Summary |
Special-case / words not recognized in lit-word!, get-word! or set-word! form |
Description |
One or more / characters in a sequence, surrounded by delimiters, is a special case of word! syntax. That same special case should be accepted for lit-word!, get-word! and set-word! syntax. MOLD TO-LIT-WORD generates the proper lit-word! syntax, but LOAD doesn't recognize it.
|
Example code |
>> to-lit-word quote /
== '/
>> quote '/
** Syntax error: invalid "word-lit" -- "'"
** Near: (line 1) quote '/
>> quote /:
** Syntax error: invalid "word-get" -- ":"
** Near: (line 1) quote /:
>> quote :/
** Syntax error: invalid "word-get" -- ":"
** Near: (line 1) quote :/
>> quote '//
** Syntax error: invalid "word-lit" -- "'"
** Near: (line 1) quote '//
>> quote //:
** Syntax error: invalid "word-get" -- ":"
** Near: (line 1) quote //:
>> quote ://
** Syntax error: invalid "word-get" -- ":"
** Near: (line 1) quote ://
; And so on
|