[antlr-interest] Error message requires key press to continue

Loring Craymer lgcraymer at yahoo.com
Mon Feb 7 01:01:27 PST 2011


Vocabulary import uses StreamTokenizer in Grammar.importTokenVocabulary(String 
vocabName).  There is a minor bug in that error recovery consumes tokens until 
TT_EOL is found; that should be either TT_EOL or TT_EOF.  You might try fixing 
that and reporting if the fix works.

--Loring


----- Original Message ----
> From: Ranco Marcus <ranco.marcus at epirion.nl>
> To: "antlr-interest at antlr.org" <antlr-interest at antlr.org>
> Sent: Mon, February 7, 2011 12:25:44 AM
> Subject: [antlr-interest] Error message requires key press to continue
> 
> Hi all!
> 
> We are working on an ANTLR tree grammar in which a syntax tree is  created 
>manually instead of by an ANTLR parser. We hand edit the TOKEN file and  found 
>out that if the last line does not end with a newline, ANTLR emits an  error 
>message "problems parsing vocabulary file...".
> 
> Although the error  message is unnecessary, it causes no problems. The problem 
>we are experiencing  however is that a key press is needed to return to the 
>command prompt. Since we  are calling ANTLR from a custom tool in Visual Studio, 
>the entire development  environment freezes and ultimately crashes our IDE.
> 
> We haven't seen this  key press behavior in other error messages and are 
>wondering if it can be  removed.
> 
> Thanks in advance,
> 
> Best regards,
> 
> Ranco  Marcus
> 
> 
> 
> 
> 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