Building a DSL in Ruby

3 views
Skip to first unread message

Louis

unread,
Sep 29, 2011, 12:27:57 PM9/29/11
to AlamoCoders
Here's a link to the slides I used:
https://docs.google.com/present/edit?id=0AfoUwESnZohQZHA0c2toM184MmZoOWR2OGQz&hl=en_US

And the references:

Eloquent Ruby - Russ Olsen
http://www.amazon.com/Eloquent-Ruby-Addison-Wesley-Professional/dp/0321584104

Agile DSL Development in Ruby - Obie Fernandez
http://www.infoq.com/presentations/agile-dsl-development-in-ruby

Domain Specific Language - Martin Fowler
http://martinfowler.com/bliki/DomainSpecificLanguage.html

Jamis Buck Blog Post on Writing DSLs (the quote came from here)
http://weblog.jamisbuck.org/2006/4/20/writing-domain-specific-languages


There was a question about instance_eval that I didn't answer too
well. Calling instance_eval changes the reference of self to the
object that it is called from. I found this blog post that does a
really good job of explaining it.
http://www.dan-manges.com/blog/ruby-dsls-instance-eval-with-delegation
Reply all
Reply to author
Forward
0 new messages