Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Tom Hawkins <tom@confluent.org>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Maximum non-constant constructors
Date: Wed, 16 Mar 2005 17:22:00 -0600	[thread overview]
Message-ID: <4238BF98.4020709@confluent.org> (raw)
In-Reply-To: <42389A3B.5060107@inria.fr>

Alain Frisch wrote:
> Tom Hawkins wrote:
> 
>> I just discovered another limitation: the maximum number of 
>> non-constant constructors is 246.
>>
>> My modified OCaml parser generator (ocamlyacc with ints -- see 
>> previous post) is producing a parser that consumes 342 different 
>> tokens types.
>>
>> Are there any ways to bypass this limitation?
> 
> 
> Polymorphic variants.

Good idea, but ocamlyacc does not accept `Some_token as valid syntax.

I'm starting to think I should invest some time developing a new parser 
generator for OCaml.

-Tom

> 
> -- Alain
> 
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
> 
> 


  reply	other threads:[~2005-03-16 23:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-16 19:51 Tom Hawkins
2005-03-16 20:42 ` [Caml-list] " Alain Frisch
2005-03-16 23:22   ` Tom Hawkins [this message]
2005-03-17 15:23     ` Stefan Monnier
2005-03-16 23:32   ` [Caml-list] " Richard Jones
2005-03-17 12:36     ` Jean-Christophe Filliatre
2005-03-17 14:00       ` Eric Cooper
2005-03-17 17:32         ` Marcin 'Qrczak' Kowalczyk
2005-03-17 18:27           ` Richard Jones
2005-03-17 17:55         ` Jon Harrop
2005-03-19  2:28           ` Jacques Garrigue

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=4238BF98.4020709@confluent.org \
    --to=tom@confluent.org \
    --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