Re: [Caml-list] camlp4 compilation model

2009-01-25 Thread Richard Jones
On Sat, Jan 24, 2009 at 09:15:43PM +0100, Mikkel Fahnøe Jørgensen wrote: It seems that an enduser program can link with a camlp4 enhanced library and magically have its syntax extended without adding camlp4 to the build process (once the library has been built). For example the bitstring

Re: [Caml-list] camlp4 compilation model

2009-01-25 Thread Mikkel Fahnøe Jørgensen
2009/1/25 Richard Jones r...@annexia.org: On Sat, Jan 24, 2009 at 09:15:43PM +0100, Mikkel Fahnøe Jørgensen wrote: It seems that an enduser program can link with a camlp4 enhanced library and magically have its syntax extended without adding camlp4 to the build process (once the library has

[Caml-list] camlp4 compilation model

2009-01-24 Thread Mikkel Fahnøe Jørgensen
Hi, I've put camlp4 on the backburner, but I think it is useful to know it a bit better, especially because several libraries are using it. a) I understand you can write a cryptic ocaml program that effectively builds and AST from whatever grammar you decide by applying camlp4. b) I also