From: Markus Mottl <mottl@miss.wu-wien.ac.at>
To: caml-list@inria.fr (OCAML)
Subject: ocamlyacc error reporting
Date: Wed, 14 Apr 1999 18:45:18 +0100 (MET DST) [thread overview]
Message-ID: <199904141645.SAA04614@miss.wu-wien.ac.at> (raw)
Hello,
it would be great if "ocamlyacc" reported more errors on badly specified
grammars. Some difficult to spot mistakes could then be resolved more
easily.
E.g.:
main : SOME_TOKEN foo {}
foo : main {}
It is impossible to derive any sentence from this grammar - still, there
is no error/warning. But also parts of a grammar can be underivable. This
can be very difficult to see in large grammars.
I have tried this example with "bison" and it can report such errors. This
is not the case with "yacc", but since ocamlyacc is based on "yacc"-code,
this is understandable...
Best regards,
Markus Mottl
--
Markus Mottl, mottl@miss.wu-wien.ac.at, http://miss.wu-wien.ac.at/~mottl
reply other threads:[~1999-04-15 15:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=199904141645.SAA04614@miss.wu-wien.ac.at \
--to=mottl@miss.wu-wien.ac.at \
--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