Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: -- (:)
From: Hendrik Tews <tews@t...>
Subject: Re: [Caml-list] automatic documentation of ocamlyacc grammars

shaddin <> 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 Archives:
Bug reports: FAQ:
Beginner's list: