Script Library: 1240 scripts
 

script.r

REBOL [ Title: "Script" Date: 3-Jul-2002 Name: 'Script Version: 1.0.0 File: %script.r Author: "Andrew Martin" Purpose: "Returns the script source code for a word." eMail: %Al--Bri--xtra--co--nz Web: http://valley.150m.com library: [ level: 'intermediate platform: none type: [tool] domain: none tested-under: none support: none license: none see-also: none ] ] Script: func [ "Returns the script source code for a word." Word [word!] ] [ join {} [ Word ": " either not value? Word [ "undefined" ] [ either any [ native? get Word op? get Word action? get Word ] [ join "native" mold third get Word ] [ either not error? try [get get Word] [ join {'} get Word ; show a literal word. ] [ mold get Word ] ] ] ] ]
halt ;; to terminate script if DO'ne from webpage
Notes
  • email address(es) have been munged to protect them from spam harvesters. If you are a Library member, you can log on and view this script without the munging.
  • (Al:Bri:xtra:co:nz)