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

[REBOL] Re: Where are the dialects?

From: dvydra2:yaho:o at: 14-Jul-2001 11:01

Brett, At my last job I've used rebol to implement a translator from a REBOL dialect to XML. This can be useful for systems that take XML input, but you want to to create scripts in a more english-like sysntax. XML: <create type='Customer' is='C1'> <field name='name'>AT&T</field> <field name='address'>Somewhere in Jersey</field> <field name='salesrep'> <lookup type='SalesRepresentative'> <key name='country'>US</key> <key name='state-or-province'>NJ</key> </lookup> </field> </create> REBOL Dialect: create Customer as C1 name = "AT&T" address = "Somewhere in Jersey" salesrep = [SalesRepresentative with country = "US" and state = "NJ"] Regards, David --- Brett Handley <[brett--codeconscious--com]> wrote:
> One of the strengths of Rebol is the support for the > creation of > mini-languages, or more fundamentally the fact that > a block is an > unevaluated store of data that can be interpreted in > different ways for > different contexts. > > My frustration with myself is that I've not been > able to capitalise on these > qualities of the language as much as I should have > (probably too much other > coding experience constrains the mind). The thing is > though, I haven't seen > a lot of examples on the list either. > > Obviously those at RT are switched on to it (Vid, > make-doc, Zork like game > by Jeff). > > I'd be grateful if people could share any insights, > breakthroughs, > applications, whatever on this topic. I need help to > get my mind onto the > possibilities of Rebol rather than *just* using it > as a programming > language. :) > > Regards, > Brett > > -- > To unsubscribe from this list, please send an email > to > [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes. >
===== David Vydra www.vydra.net david (at) vydra (dot) net