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

[REBOL] Resusing 'parse rules

From: al::bri::xtra::co::nz at: 22-Dec-2000 21:08

I'm involved in several largish projects now where I find that I'm reusing (or should I say wanting to reuse) 'parse rules and/or the actions associated with them. In simplified form, a 'parse rule looks like: [pattern (action)] In some cases I'd like to reuse the pattern, and change the action (for example generating HTML or XML, or say, postscript all from the one eText), in other cases keeping the same pattern and action (different projects). If I was using C++ (my only OO language I'm skilled in), I'd write the rules as objects and inherit from them, that's assuming that Rebol was smoothly integrated into C++. Does anyone have any suggestions on how to do this? Thank you for your help. BTW, have a Merry Christmas and a Happy New Year. Andrew Martin Spreading Rebolius good cheer... ICQ: 26227169