<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/01/d4902df050448c095838ea81e4151411"
  from="Daniel Andor &lt;da209@c...&gt;"
  author="Daniel Andor"
  date="2003-01-24T14:16:44"
  subject="[Caml-list] camlp4 vs. ocamllex/yacc?"
  prev="2003/01/cbd08493f21a17e1ac68d712a9ae0934"
  next="2003/01/ca206608ecf5956dd3d853c07789a29d"
  next-in-thread="2003/01/df46c7b5337bce14dacd35c53463377b"
  prev-thread="2003/01/523aa1b94528f58393e75c0c7c9d6a13"
  next-thread="2003/01/ca206608ecf5956dd3d853c07789a29d"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] camlp4 vs. ocamllex/yacc?">
<msg 
  url="2003/01/d4902df050448c095838ea81e4151411"
  from="Daniel Andor &lt;da209@c...&gt;"
  author="Daniel Andor"
  date="2003-01-24T14:16:44"
  subject="[Caml-list] camlp4 vs. ocamllex/yacc?">
<msg 
  url="2003/01/df46c7b5337bce14dacd35c53463377b"
  from="Jacques Carette &lt;carette@m...&gt;"
  author="Jacques Carette"
  date="2003-01-24T14:32:31"
  subject="RE: [Caml-list] camlp4 vs. ocamllex/yacc?">
</msg>
<msg 
  url="2003/01/b750165a665728d059f5f21a75402612"
  from="Jean-Christophe Filliatre &lt;Jean-Christophe.Filliatre@l...&gt;"
  author="Jean-Christophe Filliatre"
  date="2003-01-24T15:23:17"
  subject="Re: [Caml-list] camlp4 vs. ocamllex/yacc?">
<msg 
  url="2003/01/067d91462895ec0d0f2339d1f512c162"
  from="Alain.Frisch@e..."
  author="Alain.Frisch@e..."
  date="2003-01-24T18:13:43"
  subject="Re: [Caml-list] camlp4 vs. ocamllex/yacc?">
</msg>
<msg 
  url="2003/01/f1100f388716dc42a64e2753ceb5c891"
  from="Ed L Cashin &lt;ecashin@u...&gt;"
  author="Ed L Cashin"
  date="2003-01-27T06:47:35"
  subject="Re: [Caml-list] camlp4 vs. ocamllex/yacc?">
</msg>
</msg>
</msg>
</thread>

<contents>
Hi,

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?

Thanks,
Daniel.
-------------------
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

</contents>

</message>

