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

[REBOL] Re: "a REBOL dialect is usually limited...

From: g:santilli:tiscalinet:it at: 12-Nov-2002 20:49

Hi RebOldes, On Tuesday, November 12, 2002, 4:26:40 PM, you wrote: R> As you can see, the string parsing is not faster and that's only R> simple example. I never said it would be faster. Indeed, I would completely abandon that syntax, and use a value based grammar, so that a block parser can be used. R> Try to make string based parser with corect handler of R> blocks and strings and all these things. That's the easy part. :-) R> String parsing is good for example for parsing web-pages where you R> need only small part of large page (so you don't want to load/markup R> the page) but for large dialect projects is the block parsing much R> more better. Again, I agree, but you can't expect LOAD to be able to convert into REBOL values any kind of syntax "magically"; also, you cannot expect to be able to do value base parsing if your grammar is not value based. R> I think that the second way is more simple to implement. Hmm, I think that it would be much simpler to design a value based language. :-) Or, use string parsing with a simple rule that only converts you language into REBOL values, and then use block parsing for the real parsing. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: