From: Clifford Heath Date: 2008-09-26T09:44:41+09:00 Subject: Re: ANTLR Target for Ruby Eric Mahurin wrote: > On Tue, Sep 23, 2008 at 9:04 PM, Clifford Heath wrote: >> DSLs are fine for folk who don't know how to make proper grammars :-). > A quick summary is: although you lose the exact syntax > that you may want, you gain in power and flexibility. As James has said, I don't believe the latter is necessarily true. It's beholden on we who want folk to create proper grammars to use best practise ourselves, anyhow. > Don't you mean packrat instead of PEG? You're right, but I identify the two, as I've never seen one used without the other. > I was only thinking making a Grammar engine that generated dot files for > Graphviz to get a visualization of a Grammar. Ok. That wouldn't use useful to me, because when I have to document a grammar, the diagrams aren't as appropriate for that audience cf a railroad diagram. See my "Introduction to CQL" here, which has railroads extracted from ANTLRWorks: . Clifford Heath.