Version française
Home     About     Download     Resources     Contact us    
Browse thread
free, open-source version of OCaml grammar?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Basile STARYNKEVITCH <basile@s...>
Subject: Re: [Caml-list] free, open-source version of OCaml grammar?
Yitzhak Mandelbaum wrote:
> Hi,
> 
> I'd like to port the OCaml grammar to another parser generator. However, 
> the grammar is covered under the Q Public License, and the terms of the 
> license seem to require that the ported version only be distributed as a 
> patch to the current YACC grammar. Given that I'm porting the grammar to 
> serve as an example for a new parser generator, distributing it as an 
> unreadable patch is quite impractical.
> 

I am not sure that the licence requires you to make it a patch, if the syntax of your grammar is sufficiently different. 
(for instance, to port it to ANTLR/PCCTS). But I am not a lawyer.

If you intend to make a free software of your parser, perhaps the easiest way would be to ask kindly the Ocaml team?

My feeling is that your understanding of Ocaml's licence is too restrictive, especially if you play the free software 
game. But I am not a lawyer!

And a language syntax is not described by a yacc grammar, but by a human readable document. AFAIK, the Ocaml reference 
manual is not covered by QPL.

Regards.


-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***