[antlr-interest] Exit Status from ANTLR

David Holroyd dave at badgers-in-foil.co.uk
Mon Nov 20 07:51:00 PST 2006


On Mon, Nov 20, 2006 at 10:18:34AM +0100, VAUCHER Laurent wrote:
>   I think the usual way is to have an API class that allows to summon
> the ANTLR magic (with all possible parametres) and signals and exception
> when something is wrong.
>   Then, above this API class, you have several interfaces :
>  - one for the command line, which is free to do a System.exit()
> whenever it receives and exception from the API class,
>  - one for the plugin embedding, which must not do a System.exit() but
> can display an error dialog or print a log somewhere,
>  - another one for Ant embedding, which takes a 'stoponfailure' argument
> and behaves accordingly, throwing a BuildException...

Ditto the last for Maven embedding as well.

Was there someone working on a Maven (2) ANTLR (3) plugin?


ta,
dave

-- 
http://david.holroyd.me.uk/


More information about the antlr-interest mailing list