World: r3wp
[REBOL Syntax] Discussions about REBOL syntax
older newer | first last |
Andreas 14-Feb-2012 [34] | 0..0 :) |
Steeve 14-Feb-2012 [35x4] | yep |
replace some by any | |
But but... it's not only the leading and trailing zeros that can be removed. It takes me time...... | |
So the initial implementation of ladislav was right from the start | |
Ladislav 14-Feb-2012 [39] | adding the termination is needed, though |
Steeve 14-Feb-2012 [40x4] | let me try again :-) |
the only requested digit is the second one. .0.... is valid | |
or/and the first one | |
0..... is valid .0..... is valid | |
Ladislav 14-Feb-2012 [44] | aha, did not check the second one, needs a correction, then |
Steeve 14-Feb-2012 [45x2] | tuple-syntax: [[some digit 2 9 [#"." any digit] | #"." some digit 1 8 [#"." any digit] ] and termination] |
should be better | |
Ladislav 14-Feb-2012 [47] | OK |
Steeve 14-Feb-2012 [48] | Fiouuuu.... that one was hard :-) |
Endo 14-Feb-2012 [49] | Well.. may be silly question, but can I use those parse magics in my projects? I didn't see license information. |
Andreas 14-Feb-2012 [50] | A very good question. No license attached, yet. We'll fix that. |
Endo 14-Feb-2012 [51] | Ok, thanks. |
Steeve 15-Feb-2012 [52] | Andreas and Ladislav, already off ? |
Andreas 15-Feb-2012 [53] | I'm around. |
Steeve 15-Feb-2012 [54] | Still miss some datatypes ;-) |
Andreas 15-Feb-2012 [55] | Have a go at adding some more, then :) |
Steeve 15-Feb-2012 [56] | I don't want a collision. I thought your or Ladislav would finish it with the others making comments |
GrahamC 15-Feb-2012 [57] | Can do a merge ... |
Steeve 16-Feb-2012 [58x5] | The slash words are weird. Didn't know that specific syntax. It works with R2 not with R3 anymore. Maybe it was a mistake to allow such syntax in R2, so it's why it has been deprecated by Carl. |
Should we keep it ? | |
(See the last update of Ladislav) | |
Not working though (the first part is a valid refinement in R2 ): >> [///x//] == [///x //] | |
Definitivly, I don't think we should keep such syntax even in R2. It makes no sense to use such (it was an error corrected in R3). | |
Maxim 16-Feb-2012 [63] | I think it was mainly meant as a way to make / based ops things like // and /// . I don't see why it should be removed. it can only contain "/" characters. otherwise its a refinement. |
Steeve 16-Feb-2012 [64x3] | there's no way [///x] should be a valid refinement. It will fail when evaluated |
But yeah it's another problem | |
I mixed things, but there is something wrong with the both datatypes in R2 (it"s why it has been corrected in R3) | |
Maxim 16-Feb-2012 [67x2] | yeah, except when we use refinements as such within dialects, then it doesn't matter, since they are not being used as paths. |
but its ugly so, ///x shouldn't be "promoted" IMHO. if its an un-intended loophole in the lexical analysis, then it shouldn't be within the syntax.r code. | |
Steeve 16-Feb-2012 [69] | about the more-less-word rule: >> and << are allowed |
Ladislav 16-Feb-2012 [70] | thanks |
Steeve 16-Feb-2012 [71x2] | >= also |
=> as well | |
Ladislav 16-Feb-2012 [73] | the last one does not work in R3 |
Steeve 16-Feb-2012 [74] | Maybe we should begin to add notes somewhere when we encounter such differences |
Ladislav 16-Feb-2012 [75] | There is already a method for that |
Andreas 16-Feb-2012 [76] | We already have ALTERNATIVE-SYNTAX for that. |
Steeve 16-Feb-2012 [77] | Oh I thought you would say : a new I-pad or I-phone :-) |
Ladislav 16-Feb-2012 [78] | hmm, just tested, and load "=>" does not work in R2 either |
Steeve 16-Feb-2012 [79x2] | Ah yeah sorry |
in the [slash-word] rule, you don't need to fork the [termination] rule (no need to remove #"/") | |
Ladislav 16-Feb-2012 [81] | aha, correct |
Andreas 16-Feb-2012 [82] | rebol-syntax comes now licensed under the terms of the "MIT License". |
BrianH 16-Feb-2012 [83] | There are tickets about R3 syntax bugs that are still pending. Among those are one for the // etc. words. |
older newer | first last |