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

[REBOL] Re: parse crash - (was: Re: parse consumption)

From: lmecir:mbox:vol:cz at: 12-Sep-2002 10:23

Hi Anton, thanks for your example. I think, that it can be reduced to: parse/all "/" [start: skip opt (remove start) to "*"] It is interesting, that the following code doesn't cause the crash: parse/all "/" [start: skip opt (remove start) to #"*"] Cheers -L ----- Original Message ----- From: "Anton" Well, here is a simple example, tested on a clean REBOL/View 3-Aug-2002 (beta) and a clean REBOL/View 21-Jun-2001 I could probably do some more experiments and figure out some more details, but anyway: ----------- crash: func ["demonstrates a bug in parse that crashes rebol" target [any-string!] {try "/../"} /local start post ][ parse/all target [ start: "/" any [ ../ post: (remove/part start post) | to "/" ; to or thru will cause the crash ] ] ] crash "/../" ----------- Maybe someone can reduce it further. Anton.