Now in stock!

Tom Copeland's Recent Posts

RSS Feeds

« Zoho Creator uses JavaCC | Main | JavaCC, Java 1.5, and StringBuilder »

JavaCC and fixed width data

Most JavaCC grammars are written to handle input that's variable-width - e.g., source code.  But sometimes you need to be able to parse fixed width data, and JavaCC can be good for that too.  I just wrote an example JJTree grammar that parses well data logs in the Canadian Well Logging Society's LAS format.  You can see the grammar, the source code, example input data, and notes on the grammar's techniques here

For much more on JavaCC and JJTree, get the book - Generating Parsers with JavaCC!

TrackBack

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

Listed below are links to weblogs that reference JavaCC and fixed width data:

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