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

[REBOL] Re: Bug in the parse functionality ???

From: carl:s:rebol at: 22-May-2003 17:40

Clean-Script has 2 bugs: 1. It does not reset the INDENT. The main func needs the line: clear indent at the top. 2. It does not BREAK from the BLK-RULE on a closing ] or ). This causes deep PARSE rule recursion, which overflows something internally (not sure what, but I will find out!) Fix is: [#"]" | #")"] (remove indent emit str 1) break | (add the BREAK). This seems to cleanup the Clean-Script script nicely. I will check these changes into the REBOL library. Update colorizer too if needed. -Carl MM> I have some difficulties to imagine that I am the first reboller MM> using %clean-string.r on a script larger than 8 kb. Indeed, the strange behavior was noticed (and reported, at least on this list, but I think to feedback too) soon after clean-string.r was published. I don't know if the problem is in PARSE or in clean-string itself. Ladislav and Romano have reported bugs in PARSE in the past, so maybe they know.