[antlr-interest] "finally" blocks

Terence Parr parrt at cs.usfca.edu
Mon Jan 17 13:52:08 PST 2005


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.:
>
> 		someRule
> 		    : SOME TOKEN
> 		    ;
> 		    exception
> 		    catch [ MyException e ] {
> 		        // ...
> 		    }
> 		    finally {
> 		    	// ...
> 		    }
>
> 	Or just a "finally" block alone.

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

Ter
--
CS Professor & Grad Director, University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com
Cofounder, http://www.knowspam.net enjoy email again!





More information about the antlr-interest mailing list