[REBOL] Re: Multiple Word Conditional?

2000-11-17 Thread Gabriele Santilli
Rodney Snell wrote: Of course we can do: either one [print "1"] [either two [print "2"][print "3"]] print any [ if one ["1"] if two ["2"] if three ["3"] "4" ; default ] Keep in mind that ANY returns the first value found that is different from NONE or FALSE; IF returns

[REBOL] Re: Autogenerating TOC

2000-11-17 Thread Brett Handley
Hi Sharriff! I´m trying to code a function that would automatically generate a TOC of of files in a directory ... and every alphabet is a link to a sublist HTML file that contains links to files starting with the alphabet displayed in the main TOC HTML file ... but I dont know how to

[REBOL] Re: Problem Solving (was: Autogenerating TOC)

2000-11-17 Thread jelinem1
In the usually simple tasks I give to REBOL, I've found that more often than not it helps to start writing the code backwards - that is, write the "output" function first, the one that will actually write the HTML pages. Forget about the mechanics of reading in the directories and filenames, and

[REBOL] Re: Counting chars (was Simple things should be simple to do ?)

2000-11-17 Thread Rodney Snell
Here is my map. There a couple of ini methods that I use to support ini files (map of maps). I'm sure it can be improved in many ways so caveat emptor... --- REBOL [Title: "Map Object"] map!: make object! [ name: copy ""

[REBOL]

2000-11-17 Thread Sharriff . Aina
Hi! Can someone tell me why the second snippet sometimes fails? ; selects all HTML or HTM files and stores them in a separate list foreach file file-list [if find/any file ".ht?" [append toc-list :file]] exits sometimes with a read error??!! *** ; parse the titles from the html and

[REBOL] eText

2000-11-17 Thread Andrew Martin
Earlier I wrote: ...eText to XML/XHTML/HTML and not bother to inflict markup on people. Instead, I'll use white space intelligently along with Rebol embedded in the script (in a very nice way), to generate web pages. Here is the eText specification that Garold and I have been working on.

[REBOL] Read

2000-11-17 Thread Graham Chiu
In the old days, Rebol's read used to return the http headers, but now it is smart and strips them out. Wouldn't it be nice if there were a refinement to elect not to strip them out? Or better still, factor 'read' out rather than have it defined as a primitive so we could do this ourselves?

[REBOL] XML-processor toy. Or: RFC

2000-11-17 Thread Christian Ensel
Hello list, looking thru the hundreds of read and unread posts to this list, XML and REBOL's inbuild XML 'support' is mentioned at least every some days. Someone - wasn't it Andrew? - wanted to convert XML's DTDs to REBOL's parse rules. I must have overseen the :) which followed this idea ...

[REBOL] Re: XML-processor toy. Or: RFC

2000-11-17 Thread Andrew Martin
Christian wrote: Someone - wasn't it Andrew? - wanted to convert XML's DTDs to REBOL's parse rules. I must have overseen the :) which followed this idea ... Here's the smileyface: :-) ...I haven't got time tonight/this morning to produce a full XML solution that uses objects. Maybe