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

[REBOL] [REBOL Internals] question

From: gerardcote:sympatico:ca at: 26-Mar-2004 14:55

Hi List, While looking at another script from the cookbook posted by Carl [0042 code REBOL Parser in 10 Lines (plus Pretty Printer)] I thought about the possibility to create an analyser for REBOL code that could offer programmers some useful tools normally found in other programming language developers environment, that is cross-reference and autonumbering tools (to go hand in hand with the REBOL messages line numbers) and ultimately restart after some reported errors or manually inserted halt (even may be some sort of named breakpoints) and finally some more useful trace mechanism since I don't know anything about the actual virtual machine actually used by REBOL. I would like to know if someone already discussed with Carl about the possibility of restarting some broken REBOL script after manual editing to help recovery. Something like was done in BASIC in the past. We could modify some variables and check some contents in immediate mode and restart the script. - this sometimes acelerated the debugging process a bit. The real question is : Can we intercept (or at least get some access to) the halting point where REBOL was asked to stop and manually restart from this point if this is wanted by the programmer. How-to ? Would be the next question if the first one is answered positively... I also saw the mark: and :mark notation used by the parse word. It already permits this kind of manip but where is kept the internal representation of the actual running script and what can be done with it ? I think I would have to look at depth in the system object to get more answers but this can take a lot of time to do so... and I am not yet well prepared ebough for this at the moment - may be later. Thanks for all clues if any, Gerard P.S. Creating a complete simulator seems ridiculous to me since there is too much work involved in - at least for me. Some work already done for some REBOL statement evaluator would help here I think. Marteen, Joel, Ladislav or somebody else have you not been trying that in the past ?