Hi all,
I have an Parser creating an AST which uses the C target. After correct 
statements are parsed well I want to implement the error handling to provide 
meaningful error messages to the users.

I've read the coresponding sections of the antlr reference and I think that I 
need something like @rulecatch but I am a bit confused by the example in java 
and how to translate it to C correctly - do I have to catch the exceptions like 
normal C++ exceptions?

What I want to do ist to fill my own structures with the error information 
instead of displaying a text message. The reason is that the error message will 
be displayed by a separate component of the software. So I want to catch the 
errors and fill my own data structures. What is the right way to do that?

I should mention that I use wsyntactic predicates with backtracking in my 
parser. So a failed predicate doesn't mean that there is something wrong in all 
circumstances because there are more possible alternatives.

Thanks in advance
Heiko


Mit freundlichem Gruß
Heiko Folkerts
Systementwicklung und -design
--
______________________________________________
DAVID GmbH · Wendenring 1 · 38114 Braunschweig
Tel.: +49 531 24379-14
Fax.: +49 531 24379-79
E-Mail: mailto:[email protected]
WWW:   http://www.david-bs.de 
Eintragung: Amtsgericht Braunschweig, HRB 3167
Geschäftsführer: Frank Ptok
______________________________________________

 

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to