[Caml-list] Re: Type constraint to explain that a polymorphic variants is included into another

2010-10-11 Thread Sylvain Le Gall
Hello, On 08-10-2010, Jacques Garrigue garri...@math.nagoya-u.ac.jp wrote: On 2010/10/09, at 2:13, Sylvain Le Gall wrote: Hello all, I would like to build an interface for plugins that allow to extract at the same time a very specific data for a plugin family and to extract general help

[Caml-list] my own exceptions from ocamlyacc?

2010-10-11 Thread oliver
Hello, the header-section from ocamlyacc appears in the *.ml file of the parser, but not in the mli-file. Therefore, when I define an exception in the header section it is not available from the outside. At least I saw not how to achieve that. Is there a way to make that happen? I don't want

Re: [Caml-list] my own exceptions from ocamlyacc?

2010-10-11 Thread Basile Starynkevitch
On Mon, 11 Oct 2010 12:22:49 +0200 oli...@first.in-berlin.de wrote: the header-section from ocamlyacc appears in the *.ml file of the parser, but not in the mli-file. Maybe menhir is better in that respect (I don't know). Did you try it? http://gallium.inria.fr/~fpottier/menhir/ Cheers. --

[Caml-list] OPLP: Ocaml APache Log Parser

2010-10-11 Thread Chris Yocum
Dear Everyone, I just wanted to let Ocaml'ers know that I am currently working on an apache combined log parser. It is still in very early stages of development but patches/comments/feature requests/bug reports are very welcome. The code lives on github (http://github.com/cyocum/OPLP). All the

Re: [Caml-list] my own exceptions from ocamlyacc?

2010-10-11 Thread oliver
On Mon, Oct 11, 2010 at 02:25:52PM +0100, Chris Yocum wrote: I had a similar problem. The solution was to create another module which was opened inside the Parser module. This way you can add your own interface on top of the Parser/Lexer module. I hope this helps. [...] Hmhhh, something

Re: [Caml-list] my own exceptions from ocamlyacc?

2010-10-11 Thread oliver
On Mon, Oct 11, 2010 at 02:55:29PM +0200, Basile Starynkevitch wrote: On Mon, 11 Oct 2010 12:22:49 +0200 oli...@first.in-berlin.de wrote: the header-section from ocamlyacc appears in the *.ml file of the parser, but not in the mli-file. Maybe menhir is better in that respect (I don't

Re: [Caml-list] OPLP: Ocaml APache Log Parser

2010-10-11 Thread oliver
On Mon, Oct 11, 2010 at 02:45:49PM +0100, Chris Yocum wrote: Dear Everyone, I just wanted to let Ocaml'ers know that I am currently working on an apache combined log parser. It is still in very early stages of development but patches/comments/feature requests/bug reports are very welcome.

Re: [Caml-list] OPLP: Ocaml APache Log Parser

2010-10-11 Thread Chris Yocum
Hi Oliver, For now, I was just concentrating on the combined format that is used as an example on the apache site. I will probably branch out into parsing the log format itself later once I get more experience with it. Also, does anyone have a smallish block of apache log files (30k) that I can

Re: [Caml-list] my own exceptions from ocamlyacc?

2010-10-11 Thread Dario Teixeira
Hi, Hmhh, a while ago I tried around with menhir, but did not really used it. I have that in mind for cases, when ocamlyacc would become too annoying, but at least at the moment I'm fine with ocamlyacc. I thought menhir is necessary for more complex grammars; don't know if it helps me