REBOL/Core

Quick Start Guide

Version 1.0.1

About This Guide

How to Install REBOL

The REBOL Spirit

class REBOLWorldApp {
public static void main(String[] args) {
System.out.println("REBOL World!")
}
}
print "REBOL World"

Getting Started in REBOL

Writing a REBOL Script

when: make date! [30 9 1998]
print when
30/Sep/1998

Using More REBOL Power

headline: make object! [font: "arial" size: 24 color: black]
headline/size: 18
headline: make object! [
	font: "arial"
	size: 24
	color: black
]
print "REBOL World"
sum: func [a b] [a + b]
print sum 50 100
150

REBOL at Work

file: read http://www.rebol.com
save %rebolpage.html file
save %rebolpage.html read http://www.rebol.com
send friend@domain.com read http://www.rebol.com
files: load %c:/rebol/*
foreach file files [send friend@rebol.com read file]
todo [
; PRI TYPE DESCRIPTION
    9 code "Write SAVE function"
    8 fun "Bottle brew for friends"
    8 docs "Write Chapter 1"
    5 yard "Tend the Merlot vines"
    3 code "Parametric search function"
    2 web "Call Microsoft re:problems"
    1 home "Tune-up tractor engine"
    0 yard "Fix the fence near berries"
]
; Type Descriptions
[
code "write code"
docs "write docs"
yard "yard work"
home "house stuff"
fun "relaxation"
web "web related"
]

To send your stockbroker an important transaction message:

send broker@stockbroker.com [
Company: "Microsoft"
Symbol: MSFT
Shares: 1000
Action: sell
]

REBOL makes solutions easier!

What’s Next?