REBOL Library REBOL

Scripting Style

Updated: 29-May-2003

Return to main library index

Script with a Preface

preface.r

24-Apr-1999

Text before the REBOL header is ignored.

1 line

402 bytes

 
Simple Script

simple.r

24-Apr-1999

The traditional Hello World example script.

1 line

208 bytes

 
ConsoleIO

consoleio.r

1-Aug-2002

Console prompt output save,saves all console input to history.log file when in console mode.

2 lines

527 bytes

 
Check for REBOL Pro Features

licensed.r

18-May-2001

An example of how to detect View/Pro and Command special features.

5 lines

456 bytes

 
REBOL Prompt Setter

set-prompt.r

16-Jun-1999

Demonstrates how to set the prompt in REBOL

6 lines

433 bytes

 
Source

source.r

3-Jul-2002

Prints the script source code for a word.

6 lines

446 bytes

 
Quine

quine.r

20-Nov-2001

A Rebol quine; a program which reproduces its own code.

8 lines

512 bytes

 
Data Directions

directions.r

9-May-1999

Illustrates the data descriptive capabilities of REBOL -- Gives the road directions to the REBOL office from San Francisco. Readable by humans and by REBOL.

10 lines

572 bytes

 
99 Bottles of Beer Song

beersong.r

26-Apr-1998

The correct song. A bit more advanced.

15 lines

594 bytes

 
Parse REBOL Source - Recent!

parse-code.r

29-May-2003

An example of how to parse REBOL source code.

15 lines

745 bytes

 
99 Buckets of Bits Song

geeksong.r

26-Apr-1998

The geeky version :)

15 lines

682 bytes

 
Arguments

arguments.r

22-Mar-2002

Returns the arguments of the function.

15 lines

632 bytes

 
Throwing and Catching Named Values

catcher.r

16-Jun-1999

Throwing and catching functions.

16 lines

726 bytes

 
Alien Dialect Explanation

alienexp.r

10-Mar-1999

It came from outer space explained.

18 lines

1249 bytes

 
Sort Library Files by Category

sort-lib-files.r

2-Jun-2000

Copies REBOL script library files into subdirectories under the primary categories.

20 lines

922 bytes

 
Automatic local variables

protect-func.r

20-Jul-1999

Function generator that automatically makes local variables

22 lines

959 bytes

 
Search Mail for REBOL Scripts

mbxscripts.r

30-May-2000

Search a mailbox file (e.g. Eudora) for email messages containing REBOL scripts.

23 lines

1074 bytes

 
Fun

fun.r

3-Jul-2002

Automatic local word generation for a function.

25 lines

1137 bytes

 
Script

script.r

3-Jul-2002

Returns the script source code for a word.

25 lines

973 bytes

 
Alien Dialect

alien.r

10-Mar-1999

It came from outer space

30 lines

1802 bytes

 
Full REBOL Header

headfull.r

29-Apr-1999

Shows the optional definitions that can be used within a REBOL header.

30 lines

2190 bytes

 
Melt

melt.r

3-Jul-2002

Melts object ice into fluid Rebol script.

34 lines

1344 bytes

 
REBOL Ale

beer.r

30-Oct-1998

A rich, malty, copper brew.

35 lines

1177 bytes

 
REBOL Script Cleaner - Recent!

clean-script.r

29-May-2003

Cleans REBOL scripts by parsing the REBOL code and supplying standard indentation and spacing.

36 lines

2134 bytes

 
Values

values.r

3-Jul-2002

Loads Values into Rebol. Interprets 'Needs field in header.

38 lines

1515 bytes

 
Refine

refine.r

21-Dec-2001

"Add refinement(s) to a word/path"

41 lines

1472 bytes

 
Find Non-local Variables

nonlocal.r

25-May-2000

Provides an way to find local variables that have not been declared as locals.

60 lines

2387 bytes

 
Software engineering: design by contract

contract.r

18-May-2001

Facilitates design by contract

68 lines

5673 bytes

 
Color REBOL Code in HTML - Recent!

color-code.r

29-May-2003

Colorize source code based on datatype. Result is HTML. This script is used to syntax color the library scripts.

78 lines

3189 bytes

 
REBOL Document Generator

rebdoc.r

18-May-2001

Generates an HTML formatted document of all REBOL defined words (from the information found within the REBOL program itself). The output file is rebdoc.html.

113 lines

3880 bytes

 
Site

site.r

3-Jul-2002

Site dialect. Creates web sites from plain text, etc. I used it create my own site automatically.

2 pages

6610 bytes

 
Asynchronous Request Broker

rugby.r

21-May-2001

An asynchronous, high-performance, handler based, server framework and a rebol request broker...

4 pages

9580 bytes

 
Rugby client and server

rugby_server.r

28-May-2001

A high-performance, handler based, server framework and a rebol request broker...

7 pages

17838 bytes

 


The line count is for code lines only and is used as a rough estimate of code size. It does not include script headers, blank lines, or comment lines.

To add or modify a file, run REBOL/View and click on the Add-Script icon in the Library folder. Be sure that the script has a REBOL header that describes its purpose.

You can download the entire library as a compressed, self-extracting REBOL archive. The file is 585 KB and requires REBOL to extract. You may need to right click on this link to save the file in some browsers.

Once you have extracted the files, you can build these HTML index pages locally by running the build-lib.r script.

Note: All scripts are provided AS IS without warranty and without liability to the author or to REBOL Technologies.

REBOL is a trademark of REBOL Technologies.