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

World: r3wp

[!REBOL3-OLD1]

Henrik
22-Sep-2009
[17808]
this is probably the best part
Maxim
22-Sep-2009
[17809]
its definitely going to make it easier for people to learn it and 
for advanced users to debug complex rules  :-)
BrianH
22-Sep-2009
[17810]
USE 2 won't work - see the editor's notes (I was the editor).
Maxim
22-Sep-2009
[17811]
k
Pekr
22-Sep-2009
[17812]
I think I don't understand the outcome of EITHER parse blog.  don't 
like + sign, as I immediatelly think in math terms ...
BrianH
22-Sep-2009
[17813]
Parse theory is a branch of math.
Pekr
22-Sep-2009
[17814]
I don't care of theory. If I want to be like others, I go for (for 
me) totally unreadable regular expressions ...
BrianH
22-Sep-2009
[17815]
We're talking about having STAY be changed to infix &. It's cool 
to hear that infix is possible (according to Carl).
Pekr
22-Sep-2009
[17816x2]
When I read initial EITHER proposal, it was imediatelly clear, what 
it does. Whereas I am looking at following code, not being able to 
gues, what it is about. It way too much implies math operation, not 
some lexical thing:

[a + b | c | d]
[a + 2 b | c | d]
[a + not b | some c | d]
why not use ! instead of word NOT then?
BrianH
22-Sep-2009
[17818]
When I read the initial EITHER proposal, I gave it a maybe. It didn't 
act like the EITHER function, and that would be confusing.
Maxim
22-Sep-2009
[17819x3]
I REALLY don't like where this is headed...  :-(
sorry... we clamour about parse not being RE and here we are making 
it possibly even more obscure... with implied branches... by using 
a "+" no less.... sorry.
[a 2 + b | c | d | e]   is   beyond obscure.
BrianH
22-Sep-2009
[17822x2]
I don't like ! instead of NOT, siince it's too hard to distinguish 
visually from |.
I don't clamor about parse not being like RE - that is its strength. 
I've never considered that difference a problem.
Maxim
22-Sep-2009
[17824x2]
parse is readable, I'd rather have EITHER with blocks than some infix 
operators which loose the sense of PARSE...

sorry I mis-interpreted that word as a loud bragging.
(clamor)
BrianH
22-Sep-2009
[17826x2]
And they're not implied branches - it's an explicit statement. If 
you don't like the name + that's fine, it's the changed semantics 
I like.
The only problem that I have with + is  that it's *not* an infix 
operator, it's prefix.
Pekr
22-Sep-2009
[17828]
this is really - WTF for me. It turns parse into unreadable guru 
stuff with such a semantics ...
BrianH
22-Sep-2009
[17829]
& would be infix, a replacement for STAY (originally called AND, 
then AT).
Pekr
22-Sep-2009
[17830]
just don't replace STAY word with &, if you don't want to make situation 
even worse ...
Maxim
22-Sep-2009
[17831]
its like saying 


when I say implied, I really mean that you cannot just look at rules 
like they are now with a single use bblocks for many rules.  it terminates 
 somewhere later ... you must find an  | statement....  which doesn't 
properly map to open or close something... its implied based on something 
else before it...  [ ]  are explicit.
BrianH
22-Sep-2009
[17832]
STAY was a bad choice. AND was better - the only reason I picked 
AT is because I thought infix was impossible.
Maxim
22-Sep-2009
[17833x2]
its like saying
  sorry... don't know where that came from... ignore
but what's the point of AND   everything is already AND by default. 
just put them in a block, so they are and.  when you read & it doesn' 
appear that the parser isn't moving forward.
BrianH
22-Sep-2009
[17835]
EITHER doesn't work like EITHER, and it needs to be prefix, and use 
the semantics of Carl's + proposal or it won't work. Suggest a name 
to be used instead.
Maxim
22-Sep-2009
[17836x2]
the only thing he's complaining about is putting things in a block... 
what's the problem with that?
either [] [] []  can't be more explicit thant that... what is the 
problem with blocks?  or a paren for the condition?  really I don't 
get it.
BrianH
22-Sep-2009
[17838x2]
If you see | it doesn't say that the parser is backtracking either. 
& is the opposite of |.
To use a tool it sometimes helps to know how. Assume some basic reading 
of docs will be needed to use a programming language.
Pekr
22-Sep-2009
[17840]
BrianH: COPY is NOT COPY, so what?
BrianH
22-Sep-2009
[17841x3]
EITHER doesn't need to skip past |, so pick another name. It will 
be prefix. Suggest it in the 249 blog.
This is not the same thing as a programming language conditional 
- it is a GTDPL concept.
Just like CHECK isn't like IF, it's like ASSERT.
Pekr
22-Sep-2009
[17844x4]
I can't suggest anything, as I don't understand what the article 
is all about. Stuff like  - "advance past the next 2 alternate rules 
on failure."
And I can tell you - if I - the occassional parse user can't easily 
decode the meaning by just looking into the examples, there will 
be many such users ...
... and - I don't buy arguments like - it is a GTDPL concept. Our 
(parse) users will not care about such statements. We are not here 
to adhere to any academic theories, but to make things usefull. If 
we wanted to adhere to what the world uses in parsing area, we should 
go the regular expressions route ...
OK, enough. I will wait how it turns out. Let's just remember, that 
we can go our own way, as parse already does. No need to turn it 
into obscure other whatever-parse-old-70ties-theory-suggests things 
...
BrianH
22-Sep-2009
[17848]
Do you get that the concept needs a name, and that obscure concepts 
also need names? The standard syntax for this concept won't work 
in REBOL, and the only other comparable parser is the one in Perl 
6, and we can't use that syntax either, or its semantics either (it's 
compiled). This *is* guru stuff - people get PHDs about parsing. 
Carl's proposal for +'s semantics is the way that this has to work 
given how REBOL parsing is implemented.
Maxim
22-Sep-2009
[17849]
the thing I don't  *get*  maybe you can explain, is where he adds 
the increment to the '+ ... what does that mean... really I don't 
grasp it.
BrianH
22-Sep-2009
[17850]
Now, *that* is obscure. Noone else does that, not even Perl 6. That 
is unique.
Maxim
22-Sep-2009
[17851x2]
but what does it mean?
dang ... I just *got* it...

either  [ a | b ]  [ c ] [ d ]
Pekr
22-Sep-2009
[17853]
I don't mind the possibilities, I do care of naming and how long 
does it take for me to interpret it. If we go + route, we can change 
NOT to !, add &, II, >, -->, etc. :-)
BrianH
22-Sep-2009
[17854]
NOT is not going to be !, for the reasons I already mentioned.
Pekr
22-Sep-2009
[17855]
you see? looking at what Max just posted, I *imediatelly* can understand, 
what does his code do.
BrianH
22-Sep-2009
[17856]
& makes more sense than STAY, because it relates to |. Both backtrack.
Maxim
22-Sep-2009
[17857]
still don't see why the use of blocks is evil when its the way of 
parse for everything else.