Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* ocamlyacc and error messages
@ 1999-09-06 12:02 David Mentr'e
  1999-09-07  7:00 ` Jean-Christophe Filliatre
  0 siblings, 1 reply; 2+ messages in thread
From: David Mentr'e @ 1999-09-06 12:02 UTC (permalink / raw)
  To: caml-list

Hello/Bonjour,

[[ Français (résumé) ]]

Comment donner le numéro de ligne et le point d'échec dans une grammaire
d'un parser généré par ocamlyacc ?

[[ English ]]

What is the simplest way to report an error in a parser generated by
ocamlyacc ?

I would like to report :

 1. line number in parsed file

 2. failing rule number in grammar 

The point (1) is essential for me. Right know, I have a 'Fatal error:
uncaught exception Parsing.Parse_error' not very meaningful. :) I would
prefer have a message like 'parse error on line N in source file,
stucked in grammar rule foo:'.

I've looked at FAQs, mailing-list archive, ocaml sources and ocamlyacc
documentation but did not found very useful info :

 . nothing in faqs
 . mailing-list : an old message related to caml (not *o*caml)
    http://caml.inria.fr/caml-list/0061.html
 . ocaml parser in too complicated (rich error handling)
 . ocamlyacc doc is minimal


Thanks for any pointer,
david

d.
-- 
 David.Mentre@irisa.fr -- http://www.irisa.fr/prive/dmentre/
 Opinions expressed here are only mine.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-09-07  9:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-06 12:02 ocamlyacc and error messages David Mentr'e
1999-09-07  7:00 ` Jean-Christophe Filliatre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox