Version française
Home     About     Download     Resources     Contact us    
Browse thread
camlp4 parser accepts more than its grammar?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: blue storm <bluestorm.dylc@g...>
Subject: Re: [Caml-list] camlp4 parser accepts more than its grammar?
On 7/1/08, Arthur Chan <baguasquirrel@gmail.com> wrote:
>> type t = A of int | false of float
>>
>>
> That is so evil.
>

But it won't break any syntaxic sugar, as with
  type 'a list = () | :: of 'a * 'a list

Sadly, camlp4o reject these.