caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] menhir types cannot be open polymorphic variant
@ 2014-02-13 20:55 Ashish Agarwal
  2014-02-13 22:06 ` Gabriel Scherer
  0 siblings, 1 reply; 4+ messages in thread
From: Ashish Agarwal @ 2014-02-13 20:55 UTC (permalink / raw)
  To: Caml List

[-- Attachment #1: Type: text/plain, Size: 288 bytes --]

$ cat parser.mly
%token INT
%start <[> `Got_int]> main
%%
main: INT {`Got_int}

$ menhir parser.mly
File "parser.mly", line 2, characters 11-11:
Error: unexpected character(s).

If I make the type exact [`Got_int], it works fine. Is there any way to get
around this? I need an open type.

[-- Attachment #2: Type: text/html, Size: 478 bytes --]

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

end of thread, other threads:[~2014-02-14 13:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-13 20:55 [Caml-list] menhir types cannot be open polymorphic variant Ashish Agarwal
2014-02-13 22:06 ` Gabriel Scherer
2014-02-14 12:20   ` Francois Pottier
2014-02-14 13:30     ` Ashish Agarwal

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).