Version française
Home     About     Download     Resources     Contact us    
Browse thread
Camlp4: example/parse_files.ml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Nicolas Pouillard <nicolas.pouillard@g...>
Subject: Re: [Caml-list] Camlp4: example/parse_files.ml
Excerpts from Hendrik Tews's message of Mon Apr 07 09:31:09 +0200 2008:
> "Nicolas Pouillard" <nicolas.pouillard@gmail.com> writes:
> 
>    That's some corner case where first-class modules would help a
>    lot, however one can use some black magic under the hood to
>    get the same effect. One need to store extensions once and for
>    all, in a map from names to "modules". 
> 
> Sure, if you can store modules in an association list, you are
> done. But how to store modules in an association list?

When  know  which  fields  makes  interest,  one can build a record with those
particular fields namely the two parsing functions and printing functions.

-- 
Nicolas Pouillard aka Ertai