From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 455E9BC32 for ; Thu, 17 Mar 2005 00:22:03 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j2GNM2mL019308 for ; Thu, 17 Mar 2005 00:22:02 +0100 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id AAA02311 for ; Thu, 17 Mar 2005 00:22:02 +0100 (MET) Received: from postman.medtronic.com (postman.medtronic.COM [144.15.157.121]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j2GNM1xU019300 for ; Thu, 17 Mar 2005 00:22:02 +0100 Received: from bishop.pace.medtronic.COM (localhost [127.0.0.1]) by postman.medtronic.com (8.12.9/8.12.9) with ESMTP id j2GNM1lP013512 for ; Wed, 16 Mar 2005 17:22:01 -0600 (CST) Received: from pace.medtronic.com. (nenya.pace.medtronic.COM [144.15.20.58]) by bishop.pace.medtronic.COM (8.9.1b+Sun/8.9.1) with ESMTP id RAA21579 for ; Wed, 16 Mar 2005 17:22:04 -0600 (CST) Received: from [127.0.0.1] (IDENT:U2FsdGVkX1+ZY+vfBHWbFqkVJzn9GpNR6MmtttGW3iE@localhost [127.0.0.1]) by pace.medtronic.com. (8.12.11/8.12.11) with ESMTP id j2GNM0fQ004597 for ; Wed, 16 Mar 2005 17:22:00 -0600 Message-ID: <4238BF98.4020709@confluent.org> Date: Wed, 16 Mar 2005 17:22:00 -0600 From: Tom Hawkins User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list@inria.fr Subject: Re: [Caml-list] Maximum non-constant constructors References: <42388E28.6050808@confluent.org> <42389A3B.5060107@inria.fr> In-Reply-To: <42389A3B.5060107@inria.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 4238BF9A.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4238BF99.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 constructors:01 frisch:01 constructors:01 ocaml:01 parser:01 ocamlyacc:01 parser:01 tokens:01 variants:01 ocamlyacc:01 token:01 syntax:01 ocaml:01 caml-list:01 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: 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 > >