Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Bug! Rebol's parsing of urls is incorrect.

From: al:bri:xtra at: 12-Feb-2001 17:33

Brett wrote:
> I suspect that even if you had such a validating parser rule in the scheme
it would not make any difference to the way Rebol scans the url! datatype - for the reason that Holger pointed out. Thus it would not help using the load/next function either. That's right. I found out the problem in the first place by using 'load/next. It would be nice though if the scanner checked the scheme name and "dived into" a parser rule in the appropriate scheme.
> You may be better off writing your own parser. By doing so you are adding
crucial knowledge to the solution that Rebol doesn't have - that being that your input is actually plain text - not a Rebol loadable dialect. It's the best kind of dialect, plain text with rebol values interspersed. :-)
> Also, I recall a warning that Larry gave some time back about using load -
it puts the words in system/words thus using up a finite resource. So if I were to load this email I'm writing (apart from the errors) I would have words like "also", "recall", "warning" and "larry" in system/words. I do use load for loading tag names and attributes in my html manipulation scripts, but I calm myself with the knowledge that the number of tag names is probably finite. Plain text though is coming from a much larger domain of possibilities. I'll have to check for that. Good point.
> That said, having a validating parser rule as part of each scheme does
seem appropriate. It would allow you to make your own parser and know that it will not need modification as more schemes are added. It'll also mean less duplication of effort on the part of everyone. Thanks Brett. Andrew Martin ICQ: 26227169