[REBOL] Re: Commercial-quality REBOL programmers needed
From: al:bri:xtra at: 17-Aug-2002 12:37
Dick wrote:
> Could you expound on this idea? If I create functions/variables named in a
domain sort of way and use those to solve a problem, have I created a
dialect?
In a way, you have created a dialect. It's just not a very good one. I've
made a similar mistake in my earlier dialects, using functions. You can see
these early versions on the Rebol archive, IIRC. (I no longer use it.) For
some interesting dialects, have a look at my site. Most of the HTML pages
are created from an eText dialect. Substitute .txt for the .html in the URL
in your browser to view the original eText dialect.
The surrounding HTML is generated from another dialect, my ML dialect, which
generates HTML, XHTML, WML, SVG and XML from Rebol words, paths, blocks,
tags and other Rebol values. Here's an example of the ML dialect:
Dialect: [
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
html [
head [
title (Title)
link/rel/type/href "stylesheet" "text/css" (Location
%Stylesheet.css)
]
(Body-Attributes) [
div/id "Left_Column" [" "]
div/id "Center_Column" [
(eText-Dialect)
hr
a/href (Valley/Core/File) "To the Core."
]
]
]
]
The above describes the common HTML structure of most of the pages on my
site.
My site is generated by another dialect, based on files and directories.
It's a bit harder to understand as it's basically a directory structure,
with some additions. It's available as %Site.r from the %Values/ directory
in the Rebol section on my site.
I've got more dialects for creating CSS stylesheets, working with databases
and HTML form manipulation (like XForms but better); all of which are still
in developement.
I hope that helps!
Andrew Martin
ICQ: 26227169 http://valley.150m.com/