Now in stock!

Tom Copeland's Recent Posts

RSS Feeds

« Syntax highlighting and JavaCC | Main | Finding PMD rules with multiple examples »

A Java to HTML converter

Over on javacc-users we've been discussing syntax highlighting; I wrote a little highlighting app last week, and I've been thinking about this a bit since then. 

So, along a similar line of thought, here's a simple Java to HTML converter.  It's not as fancy as java2html, but the grammar has some interesting parts, including no SPECIAL_TOKEN definitions, a conversion of Java to HTML within a COMMON_TOKEN_ACTION, and bonafide token definitions (vs SKIP tokens) for whitespace characters.  It was fun to write and hopefully it'll be useful for someone.

My JavaCC book will be in stock near the end of this week, yay!

TrackBack

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

Listed below are links to weblogs that reference A Java to HTML converter:

Comments

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