From: David Monniaux <David.Monniaux@ens-lyon.fr>
To: Caml-list <caml-list@inria.fr>
Subject: ocamlyacc and error recovery
Date: Thu, 20 Feb 1997 20:11:52 +0100 (MET) [thread overview]
Message-ID: <Pine.GSO.3.95.970220200443.872A-100000@octave> (raw)
[ 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
next reply other threads:[~1997-02-21 19:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-02-20 19:11 David Monniaux [this message]
1997-02-24 10:50 ` Xavier Leroy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.GSO.3.95.970220200443.872A-100000@octave \
--to=david.monniaux@ens-lyon.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox