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

[REBOL] Parse rules as data

From: brett:codeconscious at: 27-Jun-2001 18:16

Just musing.. If a set of parse rules validate some data, then they certainly describe it too. I was wondering that if given data-A that is parsed by parse-rules-A and parse-rules-B a smart program could produce data-B that can be parsed by parse-rules-B. As in: Data-B: TRANSFORM data-A parse-rules-A parse-rules-B Probably would need transform-hints-from-A-to-B as well I suppose, in some form. Even a constrained (in terms of rules) solution might be handy. I suppose this steps into the same space as XSLT and tree-rewriting. Just whip me up one please.. Thanks.. :) Brett.