History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: ANTLR-43
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Terence Parr
Reporter: Kay Röpke
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ANTLR v3

set proper exit code when error condition has been encountered

Created: 19/Nov/06 04:13 PM   Updated: 09/Dec/07 02:53 PM
Component/s: ANTLR Core
Affects Version/s: 3.0b5
Fix Version/s: 3.1


 Description  « Hide
On 19. Nov 2006, at 23:12 , Randall R Schulz wrote:

It would be nice if the ANTLR command (as in {@link
org.antlr.Tool#main(String[])} would call System.exit(somethingNonZero)
if it detected and error in the submitted grammar specification.

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Kay Röpke - 20/Nov/06 12:52 AM
This needs discussion/research, I think.

Oliver Zeigermann said on antlr-interest:

I do not think so. Using System.exit in an IDE like e.g. Eclipse will
either tear down the whole IDE or cause a security exception. Neither
option is desirable.


Kay Röpke - 20/Nov/06 12:53 AM
fixed title to be a sentence ;)

Terence Parr - 09/Dec/07 02:53 PM
exits with 1 if > 0 errors