[antlr-interest] Island grammar for reading shell commands

Terence Parr parrt at cs.usfca.edu
Tue Nov 30 11:25:18 PST 2010


On Nov 29, 2010, at 7:00 PM, Bill Lear wrote:

> I've followed the sensible advice to create an island grammar to deal
> with parsing an unstructured shell command along with more structured
> input.  Unfortunately, when I follow the examples as given in the
> Antlr examples zip file, I get very close, but then either a NULL
> pointer exception bites, or I can only parse one line of "island"
> input --- I can't figure out how to return control back to the "sea"
> parser and have it read more input.

Can you tell us where it gets null ptr?
T


More information about the antlr-interest mailing list