forked from rebol/rebol
-
Notifications
You must be signed in to change notification settings - Fork 2
Script?
angerangel edited this page Mar 19, 2013
·
1 revision
SCRIPT? source
Checks file, url, or string for a valid script header.
SCRIPT? is a function value.
- source (file! url! binary! string!)
#SOURCE
script?: make function! [ [
{Checks file, url, or string for a valid script header.}
source [file! url! binary! string!]
][
switch type?/word source [
file! url! [source: read source]
string! [source: to binary! source]
]
find-script source
] ]