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

World: r3wp

[Parse] Discussion of PARSE dialect

Graham
29-Dec-2006
[1623x2]
unless the cookie is corrupting it somehow.
must be .. just tried IE and it works fine.
Ladislav
29-Dec-2006
[1625]
I am using Firefox 2.0.0.1
Graham
29-Dec-2006
[1626]
Me too .. but it must be a vanilla problem. Are you logged in when 
you read the page, or as guest?
Ladislav
29-Dec-2006
[1627x2]
strange - I was logged in originally, but am not now, without logging 
out...
...and I am unable to login
Graham
29-Dec-2006
[1629x2]
guess my vanilla instance is dying ...
or, I have run out of server space and so all my scripts are dying 
...
Gabriele
30-Dec-2006
[1631]
most up to date version: http://www.colellachiara.com/soft/PDFM2/compile-rules.r
Maxim
1-Jan-2007
[1632]
thanks.
Oldes
19-Jan-2007
[1633x2]
Isn't this a bug?

>> b: "1234^@567" parse/all b [copy i to {^@} 1 skip b: to end] probe 
i probe b
1234
567

BUT:

>> b: "1234^@567" parse/all b [copy i to #{00} 1 skip b: to end] 
probe i probe b
1234
1234^@567
Ah... my fault, parse is not supporting binary format:(
Maxim
19-Jan-2007
[1635]
I wish it did too.  it would make some things simple a little bit.
Volker
19-Jan-2007
[1636x2]
>> b: "1234^@567" parse/all b [copy i to "^(0)" 1 skip b: to end]
== true
>> i
== "1234"
notperfect, but a way to use numbers
Oldes
28-Feb-2007
[1638x2]
how to parse such a string:
   {some.string/(a + (b.a * c()))/end} 
to get:
   ["some" "string" "(a + (b.a * c()))" "end"]
where the 'slash' can be in the paren as well (so I cannot use just 
parse str "/")
Maxim
28-Feb-2007
[1640]
here is a full script  :-) 


rebol []

paren-start: charset "("
paren-end: charset ")"
parens: union paren-start paren-end

separator: charset [#"/" #"."]
label: complement union separator parens

content: complement parens
blk: copy []

str: {some.string/(a + 1 / 2 (b.a * c()))/end}

expression: [paren-start  any [content | expression] paren-end]

parse/all str [some [ separator | here: some [label] there:  (append 
blk copy/part here there) | here:   expression there: (append blk 
copy/part here there)]]


probe blk


ask "..."
Oldes
28-Feb-2007
[1641]
Thank you Maxim:-]
Steeve
7-Mar-2007
[1642]
IIRC someone created an inference motor using parse, unfortunalty 
i'm unable to recover the sources, someone can help me ?
Graham
7-Mar-2007
[1643]
What do you mean?  Is it encapped?
Steeve
7-Mar-2007
[1644x2]
sorry ? what do you  mean by encapied ? IIRC it was running  using 
parse dialect
*encapped
Anton
7-Mar-2007
[1646x3]
You saw it before, now you can't find it, and wish for someone else 
to help.
What did it do ?
Encapping is using the rebol SDK to "compile" rebol sources into 
an executable (from which it is obviously difficult to extract the 
sources).
Steeve
7-Mar-2007
[1649x3]
the goal was to resolve rules (like described with prolog)
it's the use of an inference motor, usally
*usually
Anton
7-Mar-2007
[1652]
This one?

http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=prolog.r
Steeve
7-Mar-2007
[1653x2]
not this one
but the same goal
Anton
7-Mar-2007
[1655]
do you remember the author ?
Steeve
7-Mar-2007
[1656x4]
no sorry
i'ts verry old
rebol.org was not created yet
i mean
Anton
7-Mar-2007
[1660]
But you were not around at this time, were you ?
Steeve
7-Mar-2007
[1661x3]
i was
i'm using Rebol since 6 years at least
i made pauses
Anton
7-Mar-2007
[1664]
aha ok
Steeve
7-Mar-2007
[1665x2]
I made a pause during which I raised sheep in the French Alps
and other ecological activities
Maxim
7-Mar-2007
[1667]
and reality kicked in?
Steeve
7-Mar-2007
[1668x2]
the reality ?, i'm just a nerd, i must admit this weakness, i can't 
leave without technology
*can't live
Maxim
7-Mar-2007
[1670]
hehe not enough buttons on a sheep I guess  ;-)
Steeve
7-Mar-2007
[1671]
I tested sincerely, but to live without technology it is like living 
with the Middle Ages, one passes the three quarters of his time to 
produce his food and to make provisions for the winter .
Graham
8-Mar-2007
[1672]
that's why the stoneage was not known for it's artistic achievements