A new domain specific language book - with JavaCC
I came across a post on Warner Onstine's blog; he's working on a book on DSLs for the Pragmatic Programmers. Sounds like a great project; and I'm glad to see that they're including a chapter on what are usually known as "external DSLs" with ANTLR and JavaCC.
He has a comment about how well PragProg's book production system is working. I used what I think is a similar system - Docbook plus a bunch of customized XSLT and Ruby utilities - to put together Generating Parsers with JavaCC and it's worked out quite nicely too. It's great to be able to run all the code examples and have both the code and the output plugged into the book's content - no more copying and pasting code! I was even able to do callouts, which I only used in one or two places, but it's handy to have the option.
Is there any analogue for java2html or javacc in Ruby? I'm rewriting my blog in RoR, and rediscovering that I use some 3rd party tools to process my XML and Java sample code...
Posted by: Will Sargent | October 13, 2007 at 10:00 PM
Hi Will - I'm not sure, but I've heard good things about Dhaka:
http://dhaka.rubyforge.org/
Posted by: tomcopeland | October 13, 2007 at 10:39 PM
Ooo, sweet. I'll take a look, thank you.
Posted by: Will Sargent | October 14, 2007 at 04:48 PM