Now in stock!

Tom Copeland's Recent Posts

RSS Feeds

« New hardware for RubyForge. | Main | A JavaCC/JJTree bug fixed »

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.

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/t/trackback/512521/22361546

Listed below are links to weblogs that reference A new domain specific language book - with JavaCC:

Comments

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...

Hi Will - I'm not sure, but I've heard good things about Dhaka:
http://dhaka.rubyforge.org/

Ooo, sweet. I'll take a look, thank you.

Post a comment

Comments are moderated, and will not appear on this weblog until the author has approved them.

If you have a TypeKey or TypePad account, please Sign In