Version française
Home     About     Download     Resources     Contact us    
Browse thread
Maximum non-constant constructors
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Tom Hawkins <tom@c...>
Subject: Re: [Caml-list] Maximum non-constant constructors
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
> 
>