REBOL  

The Internet Messaging LanguageTM

       
 

HOME

COMPANY
  Our Mission
  News Events
  Backgrounder
  Executive Bios
  To Contact Us

INTRODUCTION
  What Users Say
  In a Nutshell
  REBOL Features
  REBOL with a Cause
  What is Messaging?
  REBOL in Ten Steps

DOWNLOAD

LIBRARY
  Script Library
  User's Library

SUPPORT
  How-To
  Guides
  Feedback
  FAQ

JOBS

Download

 

REBOL in a Nutshell

REBOLTM is the Relative Expression-Based Object Language designed over a decade by Carl Sassenrath, the software architect responsible for the highly acclaimed Amiga OS -- one of the world's first personal computer multitasking operating systems.

REBOL is a messaging language that provides a broad range of practical solutions to the daily challenges of Internet computing. While designed to be simple and productive for novices, the language extends a new dimension of power to even the most seasoned of professionals. REBOL offers a significant new approach to the seamless exchange and interpretation of network-based information over a wide variety of computing platforms.

If you've written HTML or shell scripts within a text editor, chances are you can write REBOL messages. A message can be as simple as a single line or as complex as an entire application. Here are a few short examples to give you quick sense of the language.

If you want to print the traditional text message:

print "Hello World!"

Or you could send that text as an email message to a friend:

send luke@rebol.com "Hello World!"

To run a script which is stored on a web site:

do http://www.rebol.com/library/beer.r

And you can do the same for FTP (the file transfer protocol):

do ftp://www.rebol.com/hello.r

Perhaps you want to read a web page and save it as a file:

page: read http://www.cnet.com
write %cnet.html page

Or you could just write the line:

write %cnet.html read http://www.cnet.com

To send a web page to a friend through email:

send luke@rebol.com read http://www.cnet.com

To examine your email messages without removing it from the server:

print read pop://luke:r2d2@rebol.com

Then, to delete all the email from your server that contains the word "vader":

mail: open pop://luke:r2d2@rebol.com
while [not tail? mail] [
   either find first mail "vader" [
       remove mail][mail: next mail]  
]
close mail

If you need to email all the files in your letters directory to another friend:

files: read %letters/
foreach file files [send luke@rebol.com read file]

But, if you want to join all those files into a single message and send it:

message: copy ""
foreach file files [append message read file]
send luke@rebol.com message

When you are ready to send a message to your broker which is automatically processed by her REBOL-based stock trading application::

send broker@sell-it-now.dom [
    sell 1000 shares "Microsoft" MSFT at $50.00
]

Of course, your boss wants you to automatically email several web pages every hour:

pages: [
    http://www.cnet.com
    http://www.rebol.com/index.html
    http://www.news-wire.com/news/today.html
]
loop 24 [
    foreach page pages [send boss@hans.dom read page]
    wait 1:00
]

You need to extract and print the title of a web page:

page: read http://www.cnet.com
parse page [thru <title> copy title to </title>]
print title

Finally, you want to get help about a built-in REBOL word:

help power

You get the idea! Communicating with others has never been easier. Visit our script library for more applications and examples.

 

 

A Platform-Independent Language for Practical Internet Solutions

Copyright © 1999 REBOL Technologies. All Rights Reserved. REBOL and The Internet Messaging Language are trademarks of REBOL Technologies.
Contact us at
info@rebol.com; Web problems: webmaster@rebol.com