caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] ocamlyacc 4.00.0 - something changed?
@ 2012-08-20 11:43 Dawid Toton
  2012-08-20 13:54 ` [Caml-list] " Dawid Toton
  0 siblings, 1 reply; 2+ messages in thread
From: Dawid Toton @ 2012-08-20 11:43 UTC (permalink / raw)
  To: caml-list

I have nailed down my problems to a strange failure of ocamlyacc 4.00.0.
When I follow the official desk calculator example [1] I get incomplete parser.ml, it is missing root entries:

The field 'main' is required but not provided

Where there some changes made to ocamlyacc recently?
Or maybe it's only my installation broken?

Dawid

[1] http://www.askra.de/software/ocaml-doc/4.00/manual026.html

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

* [Caml-list] Re: ocamlyacc 4.00.0 - something changed?
  2012-08-20 11:43 [Caml-list] ocamlyacc 4.00.0 - something changed? Dawid Toton
@ 2012-08-20 13:54 ` Dawid Toton
  0 siblings, 0 replies; 2+ messages in thread
From: Dawid Toton @ 2012-08-20 13:54 UTC (permalink / raw)
  To: caml-list


> I have nailed down my problems to a strange failure of ocamlyacc 4.00.0.

I was silly to think it's change in 4.00.0, this was out-of-space in /tmp.

In yacc/reader.c at line 1772 it doesn't check fprintf result and continues silently so I get puzzling incomplete results.
I would put something like
#define ERR_CHECK(result) if((result) < 0) exit(2)
in yacc/defs.h and put it around each fprintf.

Dawid

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

end of thread, other threads:[~2012-08-20 13:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-20 11:43 [Caml-list] ocamlyacc 4.00.0 - something changed? Dawid Toton
2012-08-20 13:54 ` [Caml-list] " Dawid Toton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).