[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | David Monniaux <David.Monniaux@e...> |
| Subject: | ocamlyacc and error recovery |
[ ENGLISH AT BOTTOM OF MESSAGE ] J'ai un petit probleme avec ocamlyacc lorsque je veux pouvoir gerer les erreurs. Je n'arrive pas a utiliser le pseudo-token "error". La documentation de caml est tres breve a ce sujet et renvoie aux documents sur yacc... qui traitent de yacc pour le langage C et ne disent evidemment pas comment rattraper les erreurs sous ocamlyacc! J'ai toujours une exception Parse_error qui n'est jamais rattrapee. Quelqu'un sait-il comment utiliser le token "error"? [=== ENGLISH ===] I have a small problem with ocamlyacc when I want to handle errors. I can't get the "error" token to work. The caml documentation is very terse on the subject and points to standard texts about yacc... which deal with C-language yacc, not the particular points of ocamlyacc. I always have an uncaught Parser_error exception. Does anyone know how to handle the "error" token? Si l'informatique marchait, cela se saurait." http://www.ens-lyon.fr/~dmonniau