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] camlp4 vs. ocamllex/yacc?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-01-24 (14:16)
From: Daniel Andor <da209@c...>
Subject: [Caml-list] camlp4 vs. ocamllex/yacc?

I want to write a smallish translator that would read mathematical formulae in 
an easy to read (for humans, that is) format and translate them to a computer 
language (ocaml, fortran, c, latex, etc) for output.  In the process it could 
do simple consistency checks (like making sure the dimensionality of physical 
equations are correct, for example) on the parse tree. 

What are the advantages/disadvantages of using camlp4 vs. a combination of 
ocamllex and ocamlyacc?  

Is there already a translator like this out there (to save me the effort)?  

Any tips on how consistency checks on the equations could be made harnessing 
the power of the type system?

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