[antlr-interest] Re: Debugging

loic.lefevre at bnpparibas.com loic.lefevre at bnpparibas.com
Mon Aug 8 02:12:53 PDT 2005

In fact, (sorry not to be precise) I have a SWING application with which
users can type their expressions
and I check the expression at each keystroke. So I need more precise
exceptions messages than "unexpected null".

My grammar is okay (I've used the expression part of the Java language) but
at runtime I've not enough informations.

What I would like is something like "expected '(' or ')' or '+' or '-'..."
or "expected <rule name>".


---------------------- Envoyé par Loic LEFEVRE/BPSS/FR/EUROPE/GROUP le
08/08/2005 11:12 ---------------------------
  08/08/2005 09:44   Loic LEFEVRE                                                 
                     Assistant extérieur                                          
                     tel : 44097                                                  

Pour : antlr-interest

cc :

Objet :     Debugging

Hello all,
I wonder how to use the different class in the antlr.debug package.
Does anyone know what I can do with say  DebuggingCharScanner or
In brief I need to return better error messages than the well known
"unexpected null".


This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 


Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.

More information about the antlr-interest mailing list