Version française
Home     About     Download     Resources     Contact us    
Browse thread
camlp4 and quotations for c#: Two parsers needed?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] camlp4 and quotations for c#: Two parsers needed?
On Mon, Jan 28, 2008 at 10:59:15AM +0000, Joel Reymont wrote:
> I would like to introduce statements in C# into my OCaml code and have  
> camlp4 convert them to my C# AST at compile time. I would also like to  
> reuse the same parser used by camlp4 to parser regular C# files.
> 
> Is it possible to share a parser this way or do I need a special  
> parser for quotations and another parser to read C# files?

You might want to look at the implementation of PG'OCaml.  It passes
SQL statements off to the database for parsing.

Rich.

-- 
Richard Jones
Red Hat