Re: Need a compelling argument to use Django instead of Rails



Kay Schluehr wrote:
Bruno Desthuilliers wrote:


Care to write an external DSL in Ruby ?

I mean : write a parser and interpreter for a DSL. In Ruby.


It is this kind of stuff Rubys talk about when they mention "DSLs in
Ruby":

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

yes, I know - embedded DSLs.

FWIW, after a *quick* glance at this article, I haven't seen anything
that seemed undoable nor even difficult to do in Python - it all boils
down to reading an ini-like file and creating a stub source-tree from it.

--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb@xxxxxxxxxxx'.split('@')])"
.



Relevant Pages

  • Re: Ruby compilers (for DSP processors and alike)
    ... >>not write a DSL using Ruby that would allow me ... The DSL would be used to describe the ... In C we first need to declare the buffer somewhere toward the top: ... Defining the array in Ruby: ...
    (comp.lang.ruby)
  • Re: Arrow operator with dash instead of equals (->)
    ... and write a parser for it. ... Then you are not bound by the rules of Ruby syntax at all. ... of code that are meant to be processed by the Ruby interpreter. ...
    (comp.lang.ruby)
  • Re: Project idea: Ruby Press
    ... I started something like that that was basically a Ruby DSL to Docbook ... align:center ...
    (comp.lang.ruby)
  • Re: Joel Spolsky on languages for web programming
    ... defining a domain-specific language in Ruby - cf. Og data definition, ... beast to a DSL in the sense that I've come across the term in Ruby. ... Rails and rake are internal DSLs, and Ruby makes internal DSL creation ...
    (comp.lang.ruby)
  • Re: ANTLR Target for Ruby
    ... I think that's an error, based on the presumption that "is Ruby, is ... using a Ruby DSL brought with it three advantages: ... If you mean parser combinator when you say "higher order function", ... But if you want to do static grammar analysis on ...
    (comp.lang.ruby)