[antlr-interest] "finally" blocks

Paul J. Lucas pauljlucas at mac.com
Mon Jan 17 13:48:50 PST 2005


On Mon, 17 Jan 2005, Terence Parr wrote:

> On Jan 16, 2005, at 5:21 PM, Paul J. Lucas wrote:

> > 	In using ANTLR with Java, it would be nice to be able to specify
> > 	"finally" blocks, e.g.:

> Good idea Paul.  Is there a decent equiv in all potential targets?

	I don't know about all targets, but C++ doesn't need "finally"
	because C++ has destructors.  The only reason Java needs
	"finally" is because it doesn't have destructors.

	- Paul



More information about the antlr-interest mailing list