[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

pointers to DSL examples?

Pavel Vozenilek

7/8/2005 6:23:00 AM

Can I be pointed to projects/examples where a DSL was implemented in Ruby? I
am interested in extent what is possible and what techniques can be used.

Thanks,
/Pavel


4 Answers

John Wilger

7/8/2005 12:07:00 PM

0

On 7/8/05, Pavel Vozenilek <pavel_vozenilek@yahoo.co.uk> wrote:
> Can I be pointed to projects/examples where a DSL was implemented in Ruby? I
> am interested in extent what is possible and what techniques can be used.

The Ruby on Rails (http://www.rubyo...) framework impliments
several DSLs between the ActiveRecord and ActionPack libraries.
Specifically, look at ActiveRecord::Validations::ClassMethods
(http://api.rubyonrails.com/classes/ActiveRecord/Validations/ClassMe...).

--
Regards,
John Wilger

-----------
Alice came to a fork in the road. "Which road do I take?" she asked.
"Where do you want to go?" responded the Cheshire cat.
"I don't know," Alice answered.
"Then," said the cat, "it doesn't matter."
- Lewis Carrol, Alice in Wonderland


Devin Mullins

7/8/2005 12:34:00 PM

0

Rake
http://rake.ruby...

Systir
http://atomicobject.com/s...

Devin

Pavel Vozenilek wrote:

>Can I be pointed to projects/examples where a DSL was implemented in Ruby? I
>am interested in extent what is possible and what techniques can be used.
>
>Thanks,
>/Pavel
>
>



Austin Ziegler

7/8/2005 2:04:00 PM

0

On 7/8/05, Pavel Vozenilek <pavel_vozenilek@yahoo.co.uk> wrote:
> Can I be pointed to projects/examples where a DSL was implemented in Ruby? I
> am interested in extent what is possible and what techniques can be used.

PDF::QuickRef, part of PDF::Writer, is a DSL. I am in the beginning
stages of writing an article about it.

-austin
--
Austin Ziegler * halostatue@gmail.com
* Alternate: austin@halostatue.ca


Michael Neumann

7/8/2005 3:57:00 PM

0

Pavel Vozenilek wrote:
> Can I be pointed to projects/examples where a DSL was implemented in Ruby? I
> am interested in extent what is possible and what techniques can be used.

I implemented a DSL for predicate-logic terms:

http://www.ntecs.de/blog-data/Blog/presmaker-scre...
http://www.ntecs.de/viewcvs/viewc...

Regards,

Michael