r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Rebol School] Rebol School

DideC
9-Feb-2009
[1967]
It could be a good base for a remote Wiki editor. Just add an HTML 
generator to convert to static pages tree.
kib2
11-Feb-2009
[1968x2]
Hi !
How could I run a Rebol script from the command line (without using 
Rebol's own console). 

I've tried typing : "rebview.ewe myfile.r" (idem with rebcore) form 
a windows console, but the output disappear instantaneously.
Pekr
11-Feb-2009
[1970]
You want output to windows console? I am not sure it is possible 
with rebol console. It is possible with R3 though. If you want to 
stop your script, just add "halt" command at the end of your script, 
it will not close the console ...
kib2
11-Feb-2009
[1971]
(I'm running under Windows 7)
Pekr
11-Feb-2009
[1972x2]
Maybe I just don't understand, what you're trying to achieve ...
also - type >> usage in rebol console to see possible options ...
kib2
11-Feb-2009
[1974x2]
Pekr: yes, I want to output to the console.
But thanks, "halt" solved my problems as I can now launch my script 
from my editor and watch the Rebol's console output.
Janko
11-Feb-2009
[1976x2]
I am not sure if you can run rebol script in "real" console on windos, 
but on linux you can
I mean , I didn't see that options on windows
kib2
11-Feb-2009
[1978x2]
Janko: it seems to me that it's not possible.
Can someone help ? I want to know why my second title is not recognized 
: http://clojurepastebin.appspot.com/1007
Henrik
11-Feb-2009
[1980]
Looks like the rest of the text is handled like one big paragraph.
kib2
11-Feb-2009
[1981]
Henrik: sure, but  why ?
Henrik
11-Feb-2009
[1982]
I would guess you want a paragraph to be parsed until two newlines 
occur?
kib2
11-Feb-2009
[1983]
Exactly! Also, running this snippet in R3 does not bring the same 
result.
Henrik
11-Feb-2009
[1984]
I would not trust R3's parse for now. It's buggy and changing.
kib2
11-Feb-2009
[1985]
ok, and for my paragraphs ?
Henrik
11-Feb-2009
[1986]
I suggest you take a look at the makedoc parser. it does exactly 
that. I'm not sure how to solve that problem.
kib2
11-Feb-2009
[1987]
Ok, thanks for the tip.
Geomol
11-Feb-2009
[1988]
kib, you write:

title: [ 1 6 "=" copy title to newline ]


In that, you use the word title for two things, so you destroy your 
intention. Change one of them to another word (remember to do it 
again further down your code).
kib2
11-Feb-2009
[1989]
Geomol: my fault, thanks a lot! I didn't notice I've used "title" 
for 2 different purpose. Changing the variable name solved the issue.
Geomol
11-Feb-2009
[1990]
:-) You're welcome!
kib2
11-Feb-2009
[1991]
I really enjoy playing with Rebol
Geomol
11-Feb-2009
[1992]
Me 2!
kib2
11-Feb-2009
[1993]
I mean I never saw something so 1/ simple and 2/ powerful
Geomol
11-Feb-2009
[1994x2]
You might wanna use TRIM with your titles.
Neither did all of us here. That's why we use REBOL.
kib2
11-Feb-2009
[1996x2]
Ok, I just checked TRIM : that's useful.
I've somewhat modified the TextMate bundle for REBOL for e TextEditor, 
and made a new theme for it : http://tinyurl.com/dxt89p. I someone 
is interested, let me now.
Gregg
12-Feb-2009
[1998x2]
I played with the TextMate bundle at one point (when I had a mac 
running here), and I think Will Arp or Chris Ross-Gill have also 
done some work on it.
And, yes, REBOL is wonderfully addictive. :-)
Henrik
12-Feb-2009
[2000]
There is a bug in an older version of the textmate bundle, causing 
textmate to very quickly fill an error log with megabytes of errors.
kib2
13-Feb-2009
[2001x2]
Help! : how can I use parse to handle this case: a match will starts 
at  "//" only if the char before "//" is not ":" (like in "http:://www...") 
?
Henrik: how do you raise such errors ?
Henrik
13-Feb-2009
[2003]
kib2: I never entirely found out, but I think it could have been 
when it was trying to syntax highlight empty brackets: []
kib2
13-Feb-2009
[2004]
Henrik: no problem for me inside eTextEditor. I've also noticed that 
the textmate bundle missed several keywords (ie the ones from the 
parse dialect).
Tomc
13-Feb-2009
[2005]
valid-start-char: complement ":"
valid-start: [opt valid-start-char "//"]
Izkata
14-Feb-2009
[2006]
>> X: complement {:}
== "
>> length? X
== 1
>> X/1
== #"

This looks like a bug to me
Anton
14-Feb-2009
[2007x3]
What version of rebol, on what platform?
On linux, I get
>> x/1
== #"?"
Aha. In Rebol3 string! and char! were removed from COMPLEMENT allowed 
arg types.
http://curecode.org/rebol3/ticket.rsp?id=411&cursor=1
Izkata
14-Feb-2009
[2010]
Rebol/View 2.7.6.4.2, on Ubuntu linux
kib2
14-Feb-2009
[2011]
>> X: complement ":"
== "Å"
For me :
>> length? X
== 1
>> X/1
== #"Å"

On Windows Seven with RebolView 2.7.6.3.1
Oldes
14-Feb-2009
[2012]
do you mean:
 valid-start-char: complement charset ":"
kib2
14-Feb-2009
[2013]
Oldes: you're right !
Vladimir
14-Feb-2009
[2014x3]
I have a question for you rebol experts :)
How would you make simple app like this:
Open window with 100x100 pixels and lets say control individual pixels 
on that window.... something like direct screen buffer - one pixel 
= one byte in an array...