caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] .mdb access in OCaml
@ 2004-08-04 16:15 John Carr
  2004-08-04 23:15 ` [Caml-list] automatic documentation of ocamlyacc grammars shaddin
  2004-08-05  7:01 ` [Caml-list] .mdb access in OCaml Florian Hars
  0 siblings, 2 replies; 7+ messages in thread
From: John Carr @ 2004-08-04 16:15 UTC (permalink / raw)
  To: caml-list


I have a large .mdb file, which google tells me is a Microsoft Access
database, which I want to access using ocaml on Unix.  Are there any
helpful tools or libraries?

There is a C package, "mdbtools", that will provide a starting point
if nothing exists in ocaml.

(The file, produced by the state government, used to be published in
a different proprietary format which I had written C tools to read.
I had already considered rewriting my tools, and this is a chance to
write them in ocaml.)

-------------------
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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Caml-list] automatic documentation of ocamlyacc grammars
  2004-08-04 16:15 [Caml-list] .mdb access in OCaml John Carr
@ 2004-08-04 23:15 ` shaddin
  2004-08-05 17:23   ` Brock
  2004-09-02 14:40   ` Hendrik Tews
  2004-08-05  7:01 ` [Caml-list] .mdb access in OCaml Florian Hars
  1 sibling, 2 replies; 7+ messages in thread
From: shaddin @ 2004-08-04 23:15 UTC (permalink / raw)
  To: caml-list

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 want to 
document the input grammars we use. As far as i gathered from skimming 
the manual, ocamldoc doesnt do this.

-------------------
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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Caml-list] .mdb access in OCaml
  2004-08-04 16:15 [Caml-list] .mdb access in OCaml John Carr
  2004-08-04 23:15 ` [Caml-list] automatic documentation of ocamlyacc grammars shaddin
@ 2004-08-05  7:01 ` Florian Hars
  2004-08-05 21:45   ` John Carr
  1 sibling, 1 reply; 7+ messages in thread
From: Florian Hars @ 2004-08-05  7:01 UTC (permalink / raw)
  To: John Carr; +Cc: caml-list

John Carr wrote:
> There is a C package, "mdbtools", that will provide a starting point
> if nothing exists in ocaml.

I tend to do Unix.open_process_in "mdb-export foo.mdb bar" and hope that there 
are no memo fields with embedded newlines, which would require a slightly more 
elaborate parser then input_line.

Yours, Florian.

-------------------
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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Caml-list] automatic documentation of ocamlyacc grammars
  2004-08-04 23:15 ` [Caml-list] automatic documentation of ocamlyacc grammars shaddin
@ 2004-08-05 17:23   ` Brock
  2004-09-02 14:40   ` Hendrik Tews
  1 sibling, 0 replies; 7+ messages in thread
From: Brock @ 2004-08-05 17:23 UTC (permalink / raw)
  To: shaddin; +Cc: caml-list

I suggest you focus on finding a yacc -> LaTeX converter, as these are
more common than .mly converter specifically (and will work with minimal
changes). Heres one: http://se.wtb.tue.nl/~hat/showgrammar/

--Brock

On 2004.08.04.19.15, shaddin wrote:
| 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 want to 
| document the input grammars we use. As far as i gathered from skimming 
| the manual, ocamldoc doesnt do this.

-------------------
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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Caml-list] .mdb access in OCaml
  2004-08-05  7:01 ` [Caml-list] .mdb access in OCaml Florian Hars
@ 2004-08-05 21:45   ` John Carr
  2004-08-25  2:06     ` John Carr
  0 siblings, 1 reply; 7+ messages in thread
From: John Carr @ 2004-08-05 21:45 UTC (permalink / raw)
  To: caml-list


> John Carr wrote:
> > There is a C package, "mdbtools", that will provide a starting point
> > if nothing exists in ocaml.
> 
> I tend to do Unix.open_process_in "mdb-export foo.mdb bar" and hope that there 
> are no memo fields with embedded newlines, which would require a slightly more 
> elaborate parser then input_line.

mdb-export core dumped the first time I ran it on the file.  Proximate
cause is writing past the end of an array but the real problem is lack
of sanity checking input data.  I guess I'll have to do it the hard way.

-------------------
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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Caml-list] .mdb access in OCaml
  2004-08-05 21:45   ` John Carr
@ 2004-08-25  2:06     ` John Carr
  0 siblings, 0 replies; 7+ messages in thread
From: John Carr @ 2004-08-25  2:06 UTC (permalink / raw)
  To: caml-list


Since the exchange quoted below I have written an OCaml tool to read
.mdb files.  (The mdbtools maintainer says he has fixed the mdb-export
crash too.)  It is not in a releasable state yet, but anybody who is
interested an an incomplete package can contact me directly.

> > > There is a C package, "mdbtools", that will provide a starting point
> > > if nothing exists in ocaml.
> > 
> > I tend to do Unix.open_process_in "mdb-export foo.mdb bar" and hope that there 
> > are no memo fields with embedded newlines, which would require a slightly more 
> > elaborate parser then input_line.
> 
> mdb-export core dumped the first time I ran it on the file.  Proximate
> cause is writing past the end of an array but the real problem is lack
> of sanity checking input data.  I guess I'll have to do it the hard way.

-------------------
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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Caml-list] automatic documentation of ocamlyacc grammars
  2004-08-04 23:15 ` [Caml-list] automatic documentation of ocamlyacc grammars shaddin
  2004-08-05 17:23   ` Brock
@ 2004-09-02 14:40   ` Hendrik Tews
  1 sibling, 0 replies; 7+ messages in thread
From: Hendrik Tews @ 2004-09-02 14:40 UTC (permalink / raw)
  To: shaddin; +Cc: caml-list

Hi,

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
http://wwwtcs.inf.tu-dresden.de/~tews/ccsl/viewcvs.cgi/Ccslc/Ccsl/grammar.mly?annotate=1.29
I produce a raw grammar 
http://wwwtcs.inf.tu-dresden.de/~tews/ccsl/compiler.html
and a user friendly version
http://wwwtcs.inf.tu-dresden.de/~tews/ccsl/grammar.html
The latter exists also as txt file
http://wwwtcs.inf.tu-dresden.de/~tews/ccsl/grammar.txt

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:
http://wwwtcs.inf.tu-dresden.de/~tews/ccsl/viewcvs.cgi/Ccslc/
To see what you need and how it is working look for the
grammar.html and compiler.html goals in Doc/GNUmakefile.

Bye,

Hendrik

-------------------
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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-09-02 14:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-04 16:15 [Caml-list] .mdb access in OCaml John Carr
2004-08-04 23:15 ` [Caml-list] automatic documentation of ocamlyacc grammars shaddin
2004-08-05 17:23   ` Brock
2004-09-02 14:40   ` Hendrik Tews
2004-08-05  7:01 ` [Caml-list] .mdb access in OCaml Florian Hars
2004-08-05 21:45   ` John Carr
2004-08-25  2:06     ` John Carr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).