English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] .mdb access in OCaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-09-02 (14:40)
From: Hendrik Tews <tews@t...>
Subject: Re: [Caml-list] automatic documentation of ocamlyacc grammars

shaddin <shaddin@mitre.org> writes:

   Does anybody know of a tool that, given a .mly file, parses the file
   and produces documentation of the BNF of the grammar in latex (or
   html, or anything...). This would be very useful for those of us who

I just saw your question now.

I use a self written emacs lisp script. From this input
I produce a raw grammar 
and a user friendly version
The latter exists also as txt file

For the user friendly version I apply some transformation that
introduce [ ] and { } for optional occurence and repetition. For
these transformations I also have emacs lisp functions. However,
they are not very robust: Whenever I change the grammar I have to
adopt the script for the user friendly version.

You can download all scripts from the CCSL repository:
To see what you need and how it is working look for the
grammar.html and compiler.html goals in Doc/GNUmakefile.



To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners