[antlr-interest] ANTLR v3.1.1 released

Terence Parr parrt at cs.usfca.edu
Tue Oct 21 11:36:00 PDT 2008


Hi Randall, I see

	public static void main(String[] args) {
		ErrorManager.info("ANTLR Parser Generator  Version " +
						  VERSION); // + " (August 12, 2008)  1989-2008");
		Tool antlr = new Tool(args);
		antlr.process();
		if ( ErrorManager.getNumErrors() > 0 ) {
			System.exit(1);
		}
		System.exit(0);
	}

in Tool.  It calls exit(1) upon syntax.  Which error didn't return 1  
for you?

Ter
On Oct 2, 2008, at 10:06 AM, Randall R Schulz wrote:

> On Thursday 02 October 2008 09:57, Terence Parr wrote:
>> On Oct 2, 2008, at 7:08 AM, Randall R Schulz wrote:
>>> On Thursday 02 October 2008 06:48, Randall R Schulz wrote:
>>>> On Wednesday 01 October 2008 14:36, Terence Parr wrote:
>>>>> 3.1.1 released:
>>>>
>>>> I'm starting a new parser and upgraded (to 3.1, yesterday and then
>>>> to 3.1.1, later yesterday...). Anyway, I was wondering if the
>>>> ANTLR command-line interface (org.antlr.Tool#main(), i.e.) gives a
>>>> non-zero exit code when there was an error during processing of
>>>> the ".g" files?
>>>>
>>>> ...
>>>
>>> Empirical testing suggests the answer is "no."
>>>
>>> Wasn't this going to be addressed a long time ago? It's very
>>> kludgey to
>>
>> I thought so...did you get a error or warning?
>
> Regardless of whether ANTLR liked the grammar specification or not,  
> the
> exit status is always 0.
>
>
>> Ter
>
>
> Randall Schulz
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>



More information about the antlr-interest mailing list