November 2005
Intermediate to advanced
304 pages
6h 14m
English
![]()
To process structured text that has an unusual format, we must write a parser for its grammar. This is what we did in the previous section, when we wrote a grammar specification in JavaCC for an arbitrary file format. Working with a non-XML grammar is much more difficult than processing XML, and being able to convert the data to an XML format is useful because the data can then be processed by one of the many XML parsers available. Once you've tested a grammar that you've written, you can expand ...
Read now
Unlock full access