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

[REBOL] Re: Parse limitation ?

From: g:santilli:tiscalinet:it at: 8-Oct-2003 17:42

Hi Petr, On Wednesday, October 8, 2003, 4:39:01 PM, you wrote: PK> ah, but that is char-by-char execution ... Do you know any other way to do that? (Your example is using FIND multiple times, and in a big string that would be many times slower.) PK> yes, exactly - but I think such grammar to simply achieve what was PK> requested will not be easy for novices. The tool (REBOL) should support PK> our thinking pattern - and the most easy on is to "skip" "to | thru" PK> certain string - no matter what is in between. I think that it is better to think of the problem in a different way, because it allows you to understand things much better. If you switch to think about grammars instead of patterns you'll find out that your problems get simpler, not more complicated. IMHO. PK> If someone is up-to writing complete html parser, building DOM object, PK> then maybe we are near seeing rebol based web-browser? :-) Well, the 74-lines [X]HTML parser built into Temple is far from being complete, but has been able to parse all the HTML files I've fed into it until now. I don't think this is so much complicated, you just need to avoid that brain-dead way of doing things that seems to pervade the world. ;-) Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/