Article Discussion
Creating DSLs with Ruby
Summary: Broadly speaking, there are two ways to create a DSL. One is to invent a syntax from scratch, and build an interpreter or compiler. The other is to tailor an existing general-purpose language by adding or changing methods, operators, and default actions. This article explores using the latter method to build a DSL on top of Ruby.
3 posts.
The ability to add new comments in this discussion is temporarily disabled.
Most recent reply: April 28, 2006 0:22 PM by Chiaro
    James
     
    Posts: 9 / Nickname: jbritt / Registered: March 24, 2003 4:10 PM
    Creating DSLs with Ruby
    March 16, 2006 11:00 AM      
    Jim Freeze uses Ruby to create DSL on top of Ruby.

    Read this Ruby Code & Stlye article to learn more.

    http://www.artima.com/rubycs/articles/ruby_as_dsl.html

    What did you think of Jim's approach?
    • tapan
       
      Posts: 1 / Nickname: khandu / Registered: March 21, 2006 2:44 AM
      Re: Creating DSLs with Ruby
      March 21, 2006 7:48 AM      
      for more information go to http://www.apex45.com
      • James
         
        Posts: 9 / Nickname: jbritt / Registered: March 24, 2003 4:10 PM
        Re: Creating DSLs with Ruby
        March 24, 2006 11:38 AM      
        Hey, Tapan Khandelwal, thanks for the spam. It makes you look very professional.
    • Chiaro
       
      Posts: 1 / Nickname: kiaroskuro / Registered: April 28, 2006 8:17 AM
      Re: Creating DSLs with Ruby
      April 28, 2006 0:22 PM      
      Great article! I might have found an alternative solution to the variable assignment conundrum: http://liquiddevelopment.blogspot.com/2006/04/way-of-meta-part-iv-hijacking-local.html

      --Chiaroscuro--